I'm having problems trying to update all the items in an array (copying the

Certified Senior Developer
I'm having problems trying to update all the items in an array (copying the value from one element into another) when the user clicks on a link.

As part of a user interface that captures fund allocations we want to be able to click on a single link/button/checkbox and for it to set the allocation percentage to 100 for all funds in an array and set the estimated value to the current value for each of those funds. The percentage field is editable whereas the estimated value is calculated based on the percentage (which works fine when calculated as part of the saveInto after the percentage is manually input).

The following code works fine but I need to be able to dynamically create the necessary a!save rows for each item in the local!items array:

a!linkField(
links: a!dynamicLink(
label: "Disinvest all funds",
value: 100,
saveInto: {
local!items.percentageToSwitch,
a!save(...

OriginalPostID-146618

OriginalPostID-146618

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data