LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

Datatable - Row Selection - Selected rows not being retained upon Previous

Open tdimel opened this issue 3 years ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

Steps to reproduce the behavior:

  1. In a datatable with row selection enabled and "Use values from when the user last visited this screen" checked, select one or more rows.
  2. Click Next
  3. In second screen, click Previous
  4. Previously selected rows are no longer selected.

Expected behaviour

Previously selected rows from the user are checked.

Actual behaviour

Rows selected by the user are no longer checked when user navigates back to the screen.

Notes

  • If there is a variable set for pre-selected rows, the pre-selected rows regardless of Next/Previous; however, any additional selections by the user are lost.

  • If you arrive back to the initial screen with the datatable through any other means except the Previous button (for example, a decision point), the selected rows are retained.

Screenshots

N/A

Debug Logs

N/A

Paste the output of the logs here.

N/A

tdimel avatar Jul 27 '22 14:07 tdimel

You should add an assignment after the screen to save the Slected Rows in a flow collection variable and be sure to use that variable as an input attribute on the datatable.

ericrsmith35 avatar Sep 11 '22 16:09 ericrsmith35