Skip to main content
Known Participant
Feb 24, 2022 5:47 AM UTC
Question

How To Reset Paging info ?

Hi Everyone,

I am getting this error for paging

A grid component [label="Search results"] has an invalid value for "value" and "totalCount". "startIndex" must not be greater than "totalCount", but "startIndex" was 11 and "totalCount" was 0.

 

For Paging i am using the below code, 

a!pagingInfo(
startIndex: 1,
batchSize: 5,
sort: a!sortInfo(field: "Id", ascending: false())
)

How to Reset Paging I am not getting solution.

17 replies

gopalk2865
Participating Frequently
Feb 24, 2022 5:52 AM UTC

Hi , can you share your code. I think you did not configure value parameter for the grid, also pagination is not working

Known Participant
Feb 24, 2022 5:59 AM UTC

I have configure value parameter for the grid, problem is I am using Local Variable to save the paging  info like

local!groupWorkPagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 5,
sort: a!sortInfo(field: "Id", ascending: false())
)

I want to refresh/reset the paging when the value is blank in text field

gopalk2865
Participating Frequently
Feb 24, 2022 6:03 AM UTC

Try to use fv!pagingInfo instead local variable.Please go through below link ,

[View:https://docs.appian.com/suite/help/21.4/read-only-grid-configuration.html]