web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Navigate from a select...
Power Apps
Answered

Navigate from a selected Item by a gallery to the next item from gallery

(1) ShareShare
ReportReport
Posted on by 36

Hello everyone,

 

i have a "preview screen" with a gallery. From this screen i can select one item and navigate to another screen "detail screen". On this detail screen i can see the details by a form from this item. And now i want to create a button from where i can navigate to the next item from the gallery without navigating to the preview screen (gallery).

 

i tried with
UpdateContext({currentIndex: Mod(Index(BrowseGallery1.AllItems; selectedItem) + 1; CountRows(BrowseGallery1.AllItems))});;
Navigate('Details Screen' ; ScreenTransition.Fade ; {selectedItem: BrowseGallery1.AllItems[currentIndex]});
 
but it doesnt work
Can u help please
Categories:
I have the same question (0)
  • uwenagel Profile Picture
    382 on at

    I found a description of a proposed solution that should solve your problem:

     

    https://microsoft-bitools.blogspot.com/2020/03/power-apps-get-next-item-from-gallery.html

     

    Hope this helps.

     

    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.

  • Verified answer
    YoshiIsTesting Profile Picture
    36 on at

    Thank you very much for response. But it doesn't solve the problem. Found another solution: 


    Set(currentItem; If( currentItem.yourkey= Last(BrowseGallery1.AllItems).yourkey; First(BrowseGallery1.AllItems);First(Filter(BrowseGallery1.AllItems; yourkey < currentItem.yourkey))));; Navigate(Details_Screen;Transition.Push)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard