Notifications
Announcements
Hi,
Is there a place I can code the standard gallery navigation "next" and "back" buttons? It is not selectable to view all it's properties.I'd like it to update and refresh another gallery when an action like onChange or onPress occurs.
I'm just not sure if it's possible.
thank you,
Hi @SkyB
ou would need to get the Index of the selected record.A possible way to do this is to create an indexed collection of the gallery in the OnVisible of the second screen.
ID
This thread explains how you could create such an index collection.Clicking on next would have the following code:
Select(GalleryName, LookUp(colIndexedGallery, GalleryName.Selected.ID = ID).Index + 1)
This will change the GalleryName.Selected values.
Source: https://powerusers.microsoft.com/t5/Building-Power-Apps/Navigating-to-the-previous-and-next-items-in-a-filtered-gallery/td-p/1919841I hope this helps!
-----------------------PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]
I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻
I understand what you have suggested.When you say "Clicking on next..." are you referring to an added button or icon or the native "next" arrow ?Maybe, I'm trying to simply attach a script to the native "next" arrow... OnSelect -> UpdateContext( { varVisible: true } ) and it's not an option in Power Apps.Thank you for responding with a possible solution. I'm currently not gifted enough YET, to get it to work lol.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268