For example, I’ve got a button that iterates though a dataset and sets one field to a value.
<button left="10" width="100" bottom="12" height="32" label="Select All" enabled-if-dataset="data">
<when event="onClick" xmlns="urn:aviarc:widget:com.aviarc.toronto.widget.core.action:1">
<dataset:dataset-iterator dataset="data">
<set-field field="data.selected" value="y"/>
</dataset:dataset-iterator>
</when>
</button>
This works fine on smaller datasets, but now I’ve got a dataset with 400 rows in it, and it has a noticeable delay when run.
Is there another way to do this?
The way I would recommend doing that would be by the following algorithm:
I would wrap the update into the Javascript action widget. The extraction below is from Aviarc 3.6 where I was doing similar thing (from the run method), but you should be able to adjust it for your needs: