cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
__Bansari
Helper I
Helper I

List 5oo records with Pagination

Hello Community,

 

I would like to ask quick question here. What is the best option if you want to upload/ showcase 500 records on one screen with pagination? Also we have to consider processing time.

 

Thanks in Advance!

Bansari.

 

1 ACCEPTED SOLUTION

Accepted Solutions
happyume
Solution Sage
Solution Sage

1 - Create a Hidden Gallery (galAllRecords) which queries your datasource.
2 - Create a variable varPgNumber and set initial value = 1
3 - Create back and next arrow which will change value of variable varPgNumber
4 - Create a variable varRecords and set initial value = 10, this will show 10 records at a time
5 - Create a Gallery which will show records to user
6 - Under Items property write:

 

 

LastN(
FirstN(
galAllRecords.AllItems,
varRecords * varPgNumber
),
varRecords
)

 

 

Edit:

To get total pages for step 3, use formula below:

RoundUp( 
CountRows(galAllRecords.AllItems) / varRecords,
0
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up

View solution in original post

3 REPLIES 3
happyume
Solution Sage
Solution Sage

1 - Create a Hidden Gallery (galAllRecords) which queries your datasource.
2 - Create a variable varPgNumber and set initial value = 1
3 - Create back and next arrow which will change value of variable varPgNumber
4 - Create a variable varRecords and set initial value = 10, this will show 10 records at a time
5 - Create a Gallery which will show records to user
6 - Under Items property write:

 

 

LastN(
FirstN(
galAllRecords.AllItems,
varRecords * varPgNumber
),
varRecords
)

 

 

Edit:

To get total pages for step 3, use formula below:

RoundUp( 
CountRows(galAllRecords.AllItems) / varRecords,
0
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up

@happyume Thanks for quick and easy solution.

@happyume 

 

how can we setup check box value in pagination. Let's take example. I have 10 record on 1 page, one check box to checkAll checkboxes. currently it check all record and I want to checkAll based on pagination. In my case 10 checkboxes only.

 

Thanks,

Bansari.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,997)