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
  • 0
    Certified Senior Developer
    in reply to minhajk0002

    Total count is 0 means you're not fetching any data. If possible you can show your a!queryEntity codes as well.

    local!pagingInfo: a!pagingInfo(

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

    At the pagingInfo parameter, if you were to call local!pagingInfo. It will work if data is there.

    Further insights, if you are using a later version of appian with a!localVariables

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

Children
No Data