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.

  Discussion posts and replies are publicly visible

Parents Reply
  • 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.

Children