Skip to main content
January 19, 2023
Question

Grid to remain in same page after an action

  • January 19, 2023
  • 6 replies
  • 0 views

Hello,

We have a read only grid with selection enabled. Users could navigate to a page(say 5th page), select certain rows and reassign the task to another user. Once the reassignment is done, the grid lands on the first page. Is there any way we could retain the Grid on the 5th page itself after reassignment. 

TIA.

6 replies

davel001150
January 19, 2023

I think you could set the paging info in a separate local variable at the top of the code.  Have that store the start index and batch size.  You probably need to set refreshOnReferencedVarChange to false, and manually configure exactly how it refreshes. 

Then, when it's retained after the operation, the form should requery the data from the startIndex retained, and boom you should be on page 5 still.

February 3, 2023

Thanks, Dave.  All I had to do was to save the pagingInfo in pagingSaveInto of the a!gridField and pass the pagingInfo to the query entity. 

johnm744
February 2, 2024

Hi Sandra, 

Is there a possibility of doing the same but with RecordType? I have tried but it is not possible to reference a PaginInfo, if you have an idea I thank you!!!