Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Select function is outside the bounds of the gallery items

(0) ShareShare
ReportReport
Posted on by 187

I have a Pagination group wherein it uses the Sequence function for page numbers in the pagination gallery. I also have a button at the end that shows the last page number that is selectable to go to that last page in the gallery. It all functions properly except for the select function, when selecting the last page number or even any page numbers greater than 4 it will throw the "Row or column passed to the select function is outside the bounds of the gallery items"

 

It's like it can only select the first 4 records in the gallery however I set the items property of the pagination gallery to be paginated as well e.g. 1 2 3 4 -> selects more -> gallery pagination items: 5 6 7 8.

 

On Select of next button:

UpdateContext({varSelectionNumber: RoundUp(CountRows(datasource)/2,0)});
UpdateContext({varPageNumber: RoundUp(CountRows(datasource)/2,0)});
ClearCollect(colCurrentSelection, LastN(FirstN(colPageNumber,4*varSelectionNumber), 3*1));
Select(galPagination, varPageNumber)

Items of pagination gallery:

If(varSelectionNumber=1, FirstN(colPageNumber,4*varSelectionNumber), LastN(FirstN(colPageNumber,4*varSelectionNumber), 4*1))

Revlock97_1-1679298938451.png

 

 

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard