Hello All,
I have a gallery pulling from SQL. The user searches the gallery, selects an item with the checkbox, and then updates the "Quantity Requested" text input. The checkbox adds the line to a collection that will be pushed to a sharepoint list. (The text input "Qty Requested" is not being pulled from SQL.) When I select an item, the Qty Requested shows up in the collection but for some reason the value itself is not present. What am I doing wrong?
This is the onselect of the check box: Collect(colResults {itemnmbr:ThisItem.itemnmbr,lotnumbr:ThisItem.lotnumbr,QtyAvailable:ThisItem.QtyAvailable,bin:ThisItem.bin,QuantityType:ThisItem.QuantityType,QtyRequested:QtyRequested.Text})
Solved! Go to Solution.
I found the solution: the qty requested text input has to be completed BEFORE the check box selection. if the text input is updated after the check box selection, it does not bring forth the value to the collection
Hi @ebraga ,
You need to change text to a value
Collect(
colResults
{
itemnmbr:ThisItem.itemnmbr,
lotnumbr:ThisItem.lotnumbr,
QtyAvailable:ThisItem.QtyAvailable,
bin:ThisItem.bin,
QuantityType:ThisItem.QuantityType,
QtyRequested:Value(QtyRequested.Text)
}
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thank you for your help! I tried using the code you provided but unfortunately, no matter what value I enter for the text input it is only showing "0" for Qty Requested in the collection.
Does your QtyRequested control happen to be in a Gallery?
Yes it is!
I found the solution: the qty requested text input has to be completed BEFORE the check box selection. if the text input is updated after the check box selection, it does not bring forth the value to the collection
User | Count |
---|---|
172 | |
90 | |
74 | |
69 | |
58 |
User | Count |
---|---|
215 | |
160 | |
98 | |
92 | |
73 |