Hi,
I have nested forEach loop, Can we reference the index of parent forEach(first ForEach) loop inside the child loop(Second forEach)?
My use case is, I have a text box and an editable grid, both need to be looped for 5 times.so I have taken the nested for Each. Now when I removed the data from the editable grid, I am facing an issue like the data is removing from other local variable.
a!imageField( label: "delete" & fv!index, images: a!documentImage( document: a!iconIndicator( "REMOVE" ), caption: fv!index, altText: "Remove Mitigant", link: a!dynamicLink( value: fv!index, saveInto: { a!save( choose( fv!index, local!data1, local!data2, local!data3, local!data4, local!data5 ), remove( choose( fv!index, local!data1, local!data2, local!data3, local!data4, local!data5 ), save!value ) ) } ) ), size: "ICON" )
This is the code for remove functionality.
Let me know if any other inputs required
Discussion posts and replies are publicly visible