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 / Use label for multiple...
Power Apps
Unanswered

Use label for multiple galleries

(0) ShareShare
ReportReport
Posted on by

I have a screen that contains details (labels) from a selected gallery item, AppListGallery. The AppListGallery's datasource is a SP list named 'Application Master List'. The lables on the detail screen currently have the following formula:

 

AppListGallery.Selected.Title

 

I have another gallery that uses a SP list, Pinned Applications, and links to the AppListGallery by Title. I want to be able to use the same screen and lables for both galleries, using the 'Application Master List' datasource, but don't know how to modify the lable formula to include multiple galleries.

Categories:
I have the same question (0)
  • Verified answer
    SoPatt Profile Picture
    Microsoft Employee on at

    Do you mean that you want the data from the screen to depend on which gallery the user used to get to the screen?

    One way to do it is to set a variable in the "OnSelect" of the gallery, and then use that variable to determine what to do in the screen.

     

    So if your OnSelect for the galleries were like this:

         Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:true})

         Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:false})

    Then in your label could be like this:
        If(UseAppListGallery,AppListGallery.Selected.Title,OtherGallery.Selected.Title)

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @sopatte 

     

    Thanks for the help! I was able to get this to work, but had to modifiy the label formula to:

     

     If(UseAppListGallery = false ,AppListGallery.Selected.Title,OtherGallery.Selected.Title)

    OnSelect for 'OtherGallery' is: 

     

    Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:true})

    And the OnSelect for 'AppListGallery' is:

     

    Navigate(Screen1,ScreenTransition.None,{UseAppListGallery:false})

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard