Get list from a Current page of a Repeating Group

I have a Select All button for one Repeating Group. It works fine.
Now I have added a pagination, and I want to select only those items on the current page.

Screenshot 2022-10-26 224205

Literally all rows are selected with my Select All button, like shown below (it selected all items in Page 2 until the end)
Screenshot 2022-10-26 224259

I want to select only by Page. I tried using :items until # and :items from # but I can’t figure it out. Thank you for your help.

Are you using :items until # and :items from # simultaneously? If so, I’ve struggled with this before and it’s a bit counter intuitive. It’s been a while since I’ve done so I’m trying to remember back but I think it has to do with the top cell’s current cells index gets reset to 1 when you’re on page 2 or 3 or 4, etc.

Let me know if I’m way off here.

I think you’re onto something here.

You see I hardcoded item#1 until item#5. This is the intended selected fields…
like for other pages
page 1: items 1 to 5
page 2: items 6 to 10
page 3: items 11 to 15 and so on.

I tried selecting the top cell’s current cells index but I cannot target/select any object inside the RepeatingGroup, only the RG itself.

image

Here’s what you want:
This is my RG with ID on the left and current cell index on the right
image
In this page of the RG there are 3 blank id values and one full id value

The next button just increments to the next page in the RG.

The select button has this attached workflow/action:
image

1 Like

I figured it out myself too. It is very similar to your solution. Thank you very much.

One thing I find out is that:
:items from # → index of item
:items until # → number of items after

For example:

:items from #1 :items until #10

This will select 1-10.

:items from #10 :items until #5

This will select 10-15.

1 Like

NP. Happy to help

Just wanted to say this was super helpful and helped me solve this completely.

Here is a screenshot of the solution I used.

Note that I have a custom state already build that holds the starting item # and ending item # for pagination purposes, so that is what I used to create the select all function.
image

1 Like