Hi 🙂
I have created a gallery with a TextInput. When the TextInput changes value (amounts) I want to collect the value to a collection along with the product name.
Collect(MyCollection, {ProductName: ThisItem.ProductName, Amount: TextInput1.Text})
This works.
I then want to push a button, to Patch all the updatede "Amounts" in "MyCollection" to the appropriate records in my datasource. But i cant get the basic patch command to work when i pull the field values from a collection.
Patch(MyDataSource,First(MyCollection).ProductName, {Amount: First(MyCollection).Amount})
There is something in the returns from the functions that conflics i think.
Aftert getting that to work, i need to look at getting it to work for all records in the collection, using ForAll or some "If" with a counter? Input on best practise is very welcome!
Help is much appriciated 🙂 Thanks