Pagination

Certified Senior Developer

Hi,

I am trying to make an interface wherein I have a read only grid that displays data from a table stored in the database. Now I wrote an expression rule to fetch the data and passed it in the data parameter of the read only grid.

I want to implement pagination so that only 10 records initially are shown, clicking on the side arrow button '>' will load the next 10 records i.e. I will be running the query again and again for every 10 records changing my startIndex and batchSize. this will ensure that the query will not fail if the data is huge.

I wanted help in implementing the pagination as I tried implementing a few things and it didn't work. I'll attach what I have implemented.

PS : The pageSize parameter will not work, as the requirement is to "not use" pageSize. 

  

This is the expression rule where increment tells the batchSize, and times lets me tell the startIndex

This is the interface code

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data