The next step is to transform this string into a collection that can be used to write back to our data source.
Using onUpdatedItems to change the data
To do so let's use the formula below. This will split the string into a table using the tag </row> as separator.
Clear(updatedRowsCol);Clear(updatedItemsCol);// 1. Parsing changed rows into a collectionForAll(Split(LowcoderaDataGrid1.onUpdatedItems,"</Row>"),Collect(updatedRowsCol,Result));
The result is a collection like this:
Now let's get the field, ID and value organized in a tabular way. For it we are going to use the Power FX formula as below:
Finally we can loop through the data while changing our original data source.
Note that we can define which fields will receive changes by placing or removing on the switch statement