Loop or ForEach in AppStudio

Surely there is some way to process a loop in Kinetic form\App studio?

The end goal is to loop over a dataview, check a condition, if met, update the row.

I put a tiny bit of thought and effort into finding a solution before I decided to just take the easy route and pass the data into a func and do it there easily. But wait…

If my func takes a dataset, how can i create a dataset (and add the table) from Application Studio?

Seems I am stuck with either approach.

Any thoughts from you swell folks?

Isn’t that what the dataview-condition helps with? Think I have an example of looping through a dataview and calling a function, but I am guessing you can update a local dataview as well.

Then you have the “ce_IterateSerials” custom event which processes your loop.

image

3 Likes

Yes you can achieve a foreach loop using dataview-condition.

This is the example I followed.

1 Like