Hi there,
I have an array local variable here,
using a!save(local!array[1], true) does not work. any idea what's the problem?
regards,
Lin
Discussion posts and replies are publicly visible
Can you share more of your code performing the save? Is this within a button?
Otherwise the a!save() expression you note above should not have any issues when used within a user interaction.
a!localVariables( local!array: {false,false}, { a!richTextDisplayField( value: a!forEach( items: local!array, expression: { tostring(fv!item), char(13) } ) ), a!buttonArrayLayout( align: "START", buttons: { a!buttonWidget( label: "Save", saveInto: a!save(local!array[1],true) ) } ) } )
it;s just not working when just testing the interface, it seems working once put into the process model.
Thanks,
If you have any further issues, we will need to see the code surrounding the a!save() if possible.
i am with chris here:works absolutely fine. so we need more context,
if your first array1 is rule input, then you probably will have the issue. my case is like that, but once put into process model, then it works fine when test the process mode.
Thanks for the help.
I tried with rule input still its working fine as stated by Chris and Richard. I took {false;false} as ri!array input, after clicking on the button below is the result, working as expected.