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.
Discussion posts and replies are publicly visible
Hi , can you share your code. I think you did not configure value parameter for the grid, also pagination is not working
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
Try to use fv!pagingInfo instead local variable.Please go through below link ,
I think you issue looks like more that the paginginfo is in general working. its complaining that you have "no data" (Total Count is 0) and you try to start at the 11th item in your data(array). that doesn't fit.Can You insert your code via "Insert" (below the writing box)- "insert code" function ?
I can't insert code due to some restriction
my requirement is if I select any thing from DropDown I am getting result and able to display in grid,
like the If I select another value from drop down I am able to reset everything but paging not getting reset and for that reason I am getting error
Interface Definition: Expression evaluation error at function a!gridField [line 185]: A grid component [label="Search results"] has an invalid value for "value" and "totalCount". "startIndex" must not be greater than "totalCount", but "startIndex" was 6 and "totalCount" was 0.
Are you trying to save pagingInfo in your dropdown's save into?
No, I try to reset the paging based on drop down
for Paging I am using localvarialble to save
Hi, Try to do something like below, this way , everytime you select anything from dropdown, your local!pagingInfo variable will refresh,
a!localVariables( local!pagingInfo:a!pagingInfo( startIndex: 1, batchSize: 5, sort: a!sortInfo(field: "Id", ascending: false()) ), a!dropdownField( label: "Dropdown", saveInto: { a!save( local!pagingInfo, a!pagingInfo( startIndex: 1, batchSize: 5, sort: a!sortInfo(field: "Id", ascending: false()) ) ) } ) )