How to handle this fix number of cells in Repeating Group for paging

Hi there

I’m creating a paging in Repeating Group and utilising on a lot of Custom State instead of element action under Repeating Group i.e. Show Previous/Show Next/Goto Pages.

Here’s the solution:

Custom State:
image

Repeating Group for the data:
image

List of Numbers:
image

Repeating Group for numbers:
image

I made the function for paging worked well i.e. click Next / Previous / First / Last and individual page. However, I found the issue where let say you have 23 records and page size is 5 but then you make number of cell = 3 as Fixed Number of Cells, after page 3 and then you click next it worn’t display page 4 as the number exceeded max number of cells.

See below - I made this small as a sample as my records only 23:

image

How do handle this? I’m thinking to make it more Custom States to handle this paging and pass the output to List of Numbers (Start Number, Length of List and Increment) dynamically. But it so complex?

Any ideas to handle better on this?

I’m appreciated your input.

Thanks

This topic was automatically closed after 70 days. New replies are no longer allowed.