correct syntax saving to a multivalue CDT

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

Parents Reply
  • 0
    Certified Lead Developer
    in reply to mudit
    Values can be saved only in load() variable, rule input, process variable, or node input as a target but not functions. Here Index() is a function and so it would throw error if you use it on saveinto or a!save() as a target..

    Wrong Usage : a!save(index(ri!test,1,null()), value)
    Correct Usage : a!save(ri!test[1], value)

    I am wondering whether you are successfully able to save a value using index() as a target which ideally would throw error.
Children