Reputation: 1412
I want to iterate through each row of the data table check for values and update the value in the newly created column.
Are there any blogs or tutorials which have described power app data table iteration and code syntax it.
Upvotes: -1
Views: 5737
Reputation: 1
We can have a workaround for this.
ForAll
function in PowerApps.OnSelect
property as ClearCollect(yourcolname,gallery.allitems)
ForAll(yourcolname,Patch(destinationtable,Defaults(destinationtable),{columntoupdate:yourcolfieldname.value}))
Hope this solves the issue!
Upvotes: -1
Reputation: 49
Currently there's no way to iterate the items in a DataTable. You can, however, pull the data into a collection and iterate the collection using ForAll function. Then display the collection in a DataTable.
You can also create a new issue in the PowerApps Ideas Board to make a suggestion to the product team to add this to the DataTable control.
Upvotes: 0