Skip to main content
New Participant
Jan 19, 2023 11:07 AM UTC
Question

Grid to remain in same page after an action

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
Inspiring
Jan 19, 2023 3:21 PM UTC

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.

New Participant
Feb 3, 2023 10:03 AM UTC

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
Inspiring
Feb 2, 2024 8:43 AM UTC

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!!!