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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Navigate to filter gal...
Power Apps
Answered

Navigate to filter gallery

(0) ShareShare
ReportReport
Posted on by 76

On the main screen of my app I have the following buttons:

ALL (displays all the players in the club)

JU11 (displays only the U11 players)

JU13 (displays only the U13 players)

 

The buttons are navigating to 3 different pages with their own Gallery and filter.
But is it possible to just make 1 page (ALL with all the players) and when I click on JU11 then the Navigation also goes to the same page that ALL uses but filtered with JU13

In my datatable I have a column with "Ploeg" where the info like JU11 or JU13 is in.

How can I arrange this?

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Method1

    On your main page:

    Button1 OnSelect : Set(varFilter,"All"); Navigate(Screen2)
    Button2 OnSelect : Set(varFilter,"JU11");Navigate(Screen2)
    Button3 OnSelect : Set(varFilter,"JU13");Navigate(Screen2)

     

    On the filter Page:

    Gallery items property:

    If(varFilter="All", Datasource, Filter(Datasource, Ploeg=varFilter))

     

    Method2

    Insert another Gallery in Page1

    Items of the Gallery: ["All", "JU11","JU13"]

     

    In the OnSelect of the Icon / Button inside the Gallery:

    Set(varFilter,ThisItem.Value);Navigate(Screen2)

     

    Then on page 2

    Filter the Gallery as:

    If(varFilter="All", Datasource, Filter(Datasource, Ploeg=varFilter))

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

    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.

    Consider Checking My Youtube Channel

  • bertvdb Profile Picture
    76 on at

    Now I have the following code on my button ALL:

    On select: Set(varFilter;"All")

     

    And on Items of my gallery property I have
    If(varFilter="All"; Tabel1; Filter(Tabel1; Ploeg=varFilter))

     

    But when I push my ALL button nothing happens.
    Do I have to put the Navigate(...) function on the OnSelect of my button ALL? Or somewhere else?

  • bertvdb Profile Picture
    76 on at

    Set(varFilter;"All"),Navigate(BrowseALL) OR

    Set(varFilter;"All");Navigate(BrowseALL) gives an error

    Set(varFilter;"All")||Navigate(BrowseALL) gives no error but button is not navigating to BrowseALL screen.

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    Yes check the code again

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

    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.

  • bertvdb Profile Picture
    76 on at

    Ok it's working for 90% now.

    I have players that are in 2 or sometimes 3 teams. I have one player that is in JU11 and JU13

    In the excel field I have JU11|JU13 as data in the Ploeg field for this player.
    But with this filter If(varFilter="All"; Tabel1; Filter(Tabel1; Ploeg=varFilter)) this player doesn't appear in JU13 team and also not in JU11 team.
    What do I have to change in filter?

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard