Earlier people reported an issue with editable grid and selectionSaveInto defect

Earlier people reported an issue with editable grid and selectionSaveInto defect. Yesterday I too have faced same issue. Here is how I have resolved it. Basically, selectionSaveInto is keep adding another array to an existing empty array. Hence, when I tried to use the saved value, the result is not what is expected. My followup script is expecting an array of numbers, but found array or array of numbers.

Anyway, here is the code snippet of how I have resolved my issue. I am posting this so, if any one else has same issue, they can get benefited.

selectionSaveInto: {
ri!selectedSecurityIndex,
/* due to a defect in Appian, selection is keep growing as array of array */
if(
fn!count(
ri!selectedSecurityIndex
) = 0,
{},
{
a!save(
ri!selectedSecurityIndex,
fn!reduce(
fn!append,
{},
ri!s...

OriginalPostID-159278

OriginalPostID-159278

  Discussion posts and replies are publicly visible