I have a gallery whose items have a quantity field from a SP list. I want users to be able to select the value in that field as a default or else enter a new quantity. I added another field, "QTYNEW" in the list as well.
On the gallery, I display QUANTITY but have a text input whose default is QTYNEW. As it should the text input is blank. I also added a button in the gallery (so it appears on each line) that I want make the text input field set to from the QUANTITY field when the button is selected. I tried thsese for ONSELECT:
gallery.selected.textinput = text(gallery.selected.quantity)
gallery.selected.textinput=text(thisitem.quantity)
I also added a label and tried those expressions to set its text. When I click the button, nothing seems to happen.
However, if I change the ONSELECT to SET(varname, text(thisitem.quantity) and add a label with varname as its text value, it works.
The problem with that is that i need the text input field for each row in the gallery to be distinct, so I cannot use one variable. What happens on any row is separate and distinct from the others.
Would using an array solve this problem? Meaning that for each row, an item in the array would get the desired value. But then i have another problem: ROWS DO NOT HAVE TO BE PROCESSED IN ORDER, OR PROCESSED AT ALL!
Greatly appreciate any suggestions.
Oh, one more issue: when a row's value for this is set, I want to fill the row with a different color that persists.