I am building an inventory app which needs to be able to count products stored in multiple locations. Within the app I have a collection, a gallery and three input fields inside the gallery.
Through Patch, UpdateContext and possibly one other way to add the values entered into the text box I am able to ammend the total inventory counted. My problem is this: Every time I navigate away from the field inside the gallery, my value(s) disappear.
I have attached the code to OnSelect & OnChange; changed the default to "", [blank], false, and anything else I can think of. Any help would be much appreciated.
General Idea of App:
In Gallery - User enters values.
Apples: 10 on the floor; 5 near cash register; 30 apples in backroom.
Oranges: 8 on floor; 3 near cash; 100 in back room.
Can you possibly supply a picture of your screen to get a better idea about what you are trying to put together?
That will help in understanding the issue better.
_____________________________________________________________________________________ Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
This successfully adds the values of the inventory to the collection, however, it would require me to build and rename new text input fields for each new item. I would prefer to build a dynamic option which will display each item in a gallery.
Title: Name of Item Subtitle: Inventory
Input box 1, 2 3: Location(s) where inventory is kept.