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 ,
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()) ) ) } ) )
I tried the above solution but getting same error
Interface Definition: Expression evaluation error at function a!gridField [line 186]: 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.
you are getting total count is 0 . It means you dont have data to be fed into the grid. So you have to apply null check . you would need to pass data into the grid only if its not null. So just make sure your data does not have null , otherwise you will get this error
like i mentioned before ;)the issue is not the paginginfo. its your data. You grid has no data as totalcount is 0so check why you query rule (or whatever you are using to get the data) is giving you no valid result.
Hi after applying null check in grid, it is showing same error
It would be easier for us to find out the issue if you could paste the code here. You need to make sure you have data in your local variable and total count is not 0.