Paging a repeating group

@AliFarahat. Get the same trouble than you. These missing infos prevented me from using Previous / Next with Fixed number of cells because it’s not that easy to manage.

@emmanuel
Right now the only info we have is RG’s List of things: count (number of displayed items).
Can’t we have also ?
A = RG’s all results: count (total query results:count)
B = RG’s first item index (the index number of the first item displayed in the RG)
C = RG’s last item index (the index number of the last item displayed in the RG)

Then it would be easy to know if there are more results to show (A > C ?) or previous results (B > 1)
We also could knew the number of pages needed : A / # items displayed

If for back-end reason you dont want to go through all the results (for exemple you have 1200 results but you only need to display the first 12), having a first result with a maximum of 5 times the number of cells would already give a good idea of the pagination (5 * 12 = 72 items).
A = 72 at first but would be updated step by step clicking on Next.

2 Likes