Hello
I'm facing the following issue.
I have a gridLayout which is selectable and the data is from a local!getquery,
The reason why i'm doing is to get the selected rows and send them to a Post and a Put method i have so you don't necessarily need to send the entire set.
I know i can do a workaround for the process model to work but i'm trying to understand technically why the option *Unselect-all is breaking the following code.
selectionSaveInto: { a!save(ri!selectedValues, save!value ), if(rule!APN_isBlank(ri!selectedValues) , a!save(ri!errorsToSend,null), a!save(ri!errorsToSend,index(local!errorSubset,ri!selectedValues)) ) } )
Somehow after unselecting all at the sametime is falling under the false statement. IF i do 1 by 1 works fine.
Already did some tests and the expression is falling into true outside that saveinto{}.
I was verifying that the code for 19.1 for that section is not working properly. Is this an Appian bug or it's something i'm not doing right?
https://docs.appian.com/suite/help/19.1/Editable_Grid_Component.html * Editable Grid with Selection
Discussion posts and replies are publicly visible
a!save(ri!errorsToSend,index(local!errorSubset,ri!selectedValues))
As per the above line, what is the structure of local!errorSubset, is your ri!selectedValues variable is giving you index, or some other indirect value?
Also from the screenshot of Products, i can see the null values, try to reject the null.