Skip to main content

Notifications

Community site session details

Community site session details

Session Id : FHAlRTPJ7kDZRWFXLWc2/l
Power Apps - Building Power Apps
Unanswered

Make an icon navigate to a specific gallery item

Like (0) ShareShare
ReportReport
Posted on 20 Apr 2022 19:18:40 by

I want to navigate to a specific item in my gallery when an icon is pressed. On the icons onselect I put Navigate(Gallery1.Selected.Title1 = "3.6 Standard and Complex projects", Fade) but it doesnt work. There is a label called title1 that contains where I want to go after selection. I want it to navigate to the gallery item that has that title. The error is that naviagate should go to a control or a screen. I need it to stay on the same screen and move to a specific gallery item. How can I do this?

Categories:
  • eka24 Profile Picture
    20,921 on 20 Apr 2022 at 20:41:31
    Re: Make an icon navigate to a specific gallery item

    1. Create a Table using OnVisible or Using Onselect of another button:

    Set(MyTable,Table({Color:"3.1 Delivery Timeline"}, {Color:"3.1 Delivery and Handling Costs"}, {Color:"3.1 Location"}, {Color:"3.1 Liquidated Damages"}, {Color:"3.2 Installation"},{Color:"3.3 Customer Obligation"}, {Color:"3.3 Customer Obligation Cont."},{Color:"3.4 Training Scope"}, {Color:"3.4 Training Schedule"}, {Color:"3.4 Training: Customer Obligation"}, {Color:"3.4 Training Cost"}, {Color:"3.4 Training Certificate"},{Color:"3.5 Commissioning"}, {Color:"3.5 Commissioning and Acceptance"},{Color:"3.5 Acceptance: Sample Language"},{Color:"3.6 Standard and Complex projects"}))

     

    2. On the Items property of the Gallery:

      Filter(MyTable, Color= SelectedItem)

     

    3. On the Navigate button:

      Set(SelectedItem,"3.6 Standard and Complex projects")

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

    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.

  • Community Power Platform Member Profile Picture
    on 20 Apr 2022 at 20:03:38
    Re: Make an icon navigate to a specific gallery item

    I am getting invalid argument type. Is this because I created the table in the items? @eka24 

  • eka24 Profile Picture
    20,921 on 20 Apr 2022 at 19:56:00
    Re: Make an icon navigate to a specific gallery item

    Replace Title with the Column Name Color:

    Filter(Gallery1, Color = "3.6 Standard and Complex projects")

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

    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.

     

     

  • Community Power Platform Member Profile Picture
    on 20 Apr 2022 at 19:48:52
    Re: Make an icon navigate to a specific gallery item

    I am not sure about how to do this I tried this on the onselect on the button Filter(Gallery1, Title1 = "3.6 Standard and Complex projects")

  • Community Power Platform Member Profile Picture
    on 20 Apr 2022 at 19:31:24
    Re: Make an icon navigate to a specific gallery item

    I am manually loading the items in the gallery with this Table({Color:"3.1 Delivery Timeline"}, {Color:"3.1 Delivery and Handling Costs"}, {Color:"3.1 Location"}, {Color:"3.1 Liquidated Damages"}, {Color:"3.2 Installation"},{Color:"3.3 Customer Obligation"}, {Color:"3.3 Customer Obligation Cont."},{Color:"3.4 Training Scope"}, {Color:"3.4 Training Schedule"}, {Color:"3.4 Training: Customer Obligation"}, {Color:"3.4 Training Cost"}, {Color:"3.4 Training Certificate"},{Color:"3.5 Commissioning"}, {Color:"3.5 Commissioning and Acceptance"},{Color:"3.5 Acceptance: Sample Language"},{Color:"3.6 Standard and Complex projects"}). Then when the icon is selected I want to navigate to 3.6 Standard and complex @eka24 

  • zmorek Profile Picture
    3,272 on 20 Apr 2022 at 19:28:52
    Re: Make an icon navigate to a specific gallery item

    Navigate() has to go to a screen; you could consider filtering the gallery with something (perhaps by setting a variable, or referencing the value of another control, etc.), which would result in the gallery having at least one item in it that meets those filter criteria.

     

    Edit: Oops didn't mean to jump on the bandwagon of replies, didn't see others replied while I was typing mine.

  • EdViegas Profile Picture
    436 on 20 Apr 2022 at 19:27:22
    Re: Make an icon navigate to a specific gallery item

    The function Navigate expects a screen value as first parameter

    Back and Navigate functions in Power Apps - Power Apps | Microsoft Docs

     

    You can use the button to Filter the items Gallery and then use SetFocus function to the desired control

    SetFocus function in Power Apps - Power Apps | Microsoft Docs

     

  • eka24 Profile Picture
    20,921 on 20 Apr 2022 at 19:26:40
    Re: Make an icon navigate to a specific gallery item

    On the OnSelect put:

    Set(SelectedItem,"3.6 Standard and Complex projects")

     

    Then in the Items property of the Gallery:

    Filter(Datasource, ColumnName = SelectedItem)

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

    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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,751 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard