Support Article
Focus setting to first item after last item from list is removed
SA-31143
Summary
Items are removed form the first list and added to the second list. SetFocus option is used to set the focus on the current item in the list after removing the item. An error occurred when removing the last item from the first list and adding it to the new list. The focus is not on the new last item in the list.
Error Messages
Please select a row
Steps to Reproduce
- Configure a repeat grid onClick events.
- Map data transform to load data to new list and remove it from the existing list.
- Refresh List.
- Set focus on the current item to get the focus to the selected item.
- Refresh other section.
Root Cause
Item was removed from the list in the data transform before setting the focus in the action set.
Resolution
Perform the following local-change:
Refer the out-of-the-box control combination Build a List, and follow the action sets of the grid repeat layout. Remove the item by adding Delete Item after the data transform and the refresh section.
Published January 27, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.