Posted: 13 Jan 2021 3:34 EST Last activity: 14 Jan 2021 7:50 EST
Cosmos Section refresh does not honour pagination and filter criteria in grid
We have a requirement for a grid to retain current pagination and filter criteria on section refresh. Is this behavior expected? or can we do anything to retain the state of grid. @RichardMarsot
Exact use case is we launch a modal dialog on click of a button in a section which contains grid as well. Based on the items user has selected in the grid, the Modal dialog flow performs some operation on the grid items like changing some values. Now, once we submit the modal dialog we do a section refresh, which resets the filters and current page which user is viewing.
Perform the following local change:
Use Refresh List to maintain the Pagination, Sorting, or Filtering state of the repeating grid.
Optionally, use Advanced Pagination to maintain the state of the repeating grid with Reload Section. You must write custom logic to achieve the pagination you want.
@Avinash.Haridasu do you have a screenshot or design of what you are trying to achieve? Are the data entered in the modal dialog changing multiple rows in the table or only a single row? If your button that triggers the show local action is in the same section as the table, the table will be reloaded completely once the modal is submitted. To avoid this behavior, you would want to move the button inside its own section and on close of the modal add a run data transform to make the clipboard update based on the content of the modal and then use the refresh list action to refresh the table while keeping the state of the table related to pagination or filters.