I know this is due to not enough coffee, but here goes.
I've a simple interface A. I have a CDT defined as an Array type. At runtime, the CDT is populated with data. (cdt[1]).
On click of a button, i wish to save a new set of values to cdt[2] or 3 or whatever.
I tried using
saveInto{ target cdt, value@ append(cdt, cdt.field1) but no luck.
What am I missing chaps ?
Discussion posts and replies are publicly visible
Use the below code format .. Hope it helps.
value:ri!xyz, saveInto:{ a!save(index(cdt,"column1",{}),save!value), a!save(index(cdt2,"column2",{}),save!value) /*you can use many repetetions */ }
There is no best practice defined for use of dot in a!save (at least nothing i found) at most places index is recommended when it comes to CDTs .Also When index is recommended for CDTs and array retrieval of data i see no reason why it cant be used to save it. This link might help you for clear understanding.
community.appian.com/.../47704