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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic navigation tho...
Power Apps
Unanswered

Dynamic navigation though gallery thisitem Buttons

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I'm struggling to find a way to navigate to a new screen via a button in "thisitem".

 

I have a home page with a gallery referencing a table that has a site name and site address, in each item, when the user wants to interact with this site, they will click that item (in the gallery), and it will take them to that items screen where there is a seperate gallery for inventory of stock.

 

Everything is complete minus the navigation from the home screen to the selected items Specific Screen.

 

For example:

 

Home Screen

 

Gallery 1

site 1 - when selected, navigate to Screen of site 1

site 2 - when selected, navigate to screen of site 2

site 3 - when selected, navigate to screen of site 3.

 

I've tried a bunch of options but cannot get either to work.

 

Any help would save me hours and hours of banging my head against the wall!

 

Thanks 🙂

site 3

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at
    Re: Dynamic navigation though gallery thisitem Buttons

    @KMOR 
    By site do you mean navigate to a website? If yes, the create a new column in your datasource with website links (https://www.google.ca, etc).

     

    Then use this code in the OnSelect property of the button

    Launch(ThisItem.WebsiteLinkColumnName)

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • KMOR Profile Picture
    4 on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Hi,

     

    Sorry no, bad habit, replace everything with screen,

     

    Thanks

  • eka24 Profile Picture
    20,923 on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Can you show a screenshot. The navigation button show be outside the Gallery not inside the Gallery

     

     

    Or you want to show the selected item in Gallery1 to show in Gallery2.

    ------------
    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • KMOR Profile Picture
    4 on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Hi,

     

    I've attached a screenshot of my home screen ( sorry it took a while I had to remove some sensitive data so ignore the red crosses.)

     

    Each Site (BSH/LCT, there will be much more) has it's own inventory screen, so when you select the arrow next to it's name it will navigate you to the corresponding screen, which is what I need it to do.

     

    However I need each arrow to take it to that items screen, so...

     

    BSH navigates to BSHSCREEN,

    LCT navigates to LCTSCREEN etc.

     

    I know I can manually add a button for each and have it navigate with navigate(BSHSCREEN) but I would like the navigation to be more dynamic so I can use a scrolling gallery

     

    hopefully that makes more sense,

     

    Thanks

     

     

  • eka24 Profile Picture
    20,923 on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Watch this video, hope it helps

     https://youtu.be/GfNmREJot5I

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    v-xida-msft Profile Picture
    on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Hi @KMOR ,

    Do you create a individual screen for each Site Item in your Home Gallery?

     

    Based on the needs that you mentioned, I think the If function or switch function could achieve your needs. Please set the OnSelect property of the ">" icon in your Home Gallery to following:

    If(
     ThisItem.'site name' = "BSH",
     Navigate(BSHSCREEN),
     ThisItem.'site name' = "LCT",
     Navigate(LCTSCREEN),
     ...
    )

    or

    Switch(
     ThisItem.'site name',
     "BSH", Navigate(BSHSCREEN),
     "LCT", Navigate(LCTSCREEN),
     ...
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at
    Re: Dynamic navigation though gallery thisitem Buttons

    Hi I'm trying to accomplish the same. Is the 'site name' part of this the name of the column/ field in the gallery with BSH/LCT examples of the data in that field?

     

    I have a gallery reading from a SharePoint list with project numbers where I'd like to create a screen for each and navigate to it with a dynamic navigate button on the main screen. 

     

    Love to see if this works!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard