Hello!
I'm building an app where the user can take in assets, the quantity of which is dynamic.
The assets fill a Gallery, which has a TextInput control and a BarcodeReader control. The TextInput Default value is the last Value of the BarcodeReader.Barcodes table. This way, the TextInput gets filled properly, but the scanned values don't reset even after navigating to another page and back. This is my problem, because in case of ~50 assets, the user has to manually clear all ~50 TextInputs.
Things I have tried (and didn't work):
- Storing the scan in a variable and making it Blank on reset (using variable caused every TextInput to overwrite its value on every scan)
- Storing the scan in a collection and clearing it (same as previous)
- Resetting entire Gallery control (resets TextInputs with manual value, but not the ones with scanned values)
- Navigating to another page before resetting (still no reset on scans)
Can anyone please provide a solution, or at least an idea?
Thanks!
Edit: Grammar.