Issue with SAIL Recipe "Use Selection For Bulk Actions in an Inline Editable Grid" when Selecting All Rows

I am building a form with an editable gird based on the SAIL Recipe "Use Selection For Bulk Actions in an Inline Editable Grid". This works as expected when selecting individual rows and even when selecting all rows using the check box in the header row. The problem occurs when using the check box in the header row to select all rows (Selected Values 1; 2; 3; 4; 5; 6; 7; 8) and then unchecking the header row box (Selected Values ; ; ; ; ; ; ; ) -- at this point any new selections are added to the end of what is now an array of nulls as rows are checked and the check box will not stay checked. If I uncheck each row individually the problem does not occur.

The values are stored in local!selectedIndices using load(). If I also save the results into a rule input I do not see the nulls in that variable
selectionValue: local!selectedIndices,
selectionSaveInto: {local!selectedIndices, ri!selectedIndices}

Any suggestions on the best way to resolve ...

OriginalPostID-188742

OriginalPostID-188742

  Discussion posts and replies are publicly visible