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 / How to get specific ga...
Power Apps
Answered

How to get specific gallery

(0) ShareShare
ReportReport
Posted on by 1,088

I have a screen with multiple galleries on it.

 

When someone clicks on an item I would like to have a 'popup' that displays more details for the item selected.

 

This is very easy with one gallery.

 

But how do I know what gallery the item was selected from with multiple galleries?

 

Is there something like a Gallery1.Selected = true or Selected.Gallery.Name= Gallery1 or something else?

 

Maybe onselect I set a variable with the Gallery name?  (How do I get the gallery name) then in the popup filter on that??

 

Thanks for any ideas.

 

Thanks,

Terry

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Mattw112IG ,

    I would set a Variable on the OnSelect of each gallery. I am assuming these galleries have the same data source, if not still possible with the same structures, but I will deal with this one

    So if you had something like this on the first gallery OnSelect and so on for the rest

    Set(vChosen,"OneChosen")

    the Item of the form would be

    Switch(
     vChosen,
     "OneChosen",
     Gallery1.Selected,
     "TwoChosen",
     Gallery2.Selected
    ) //and so on for the rest.

     

    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. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Mattw112IG ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    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. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Mattw112b Profile Picture
    1,088 on at

    Worked, thanks!

  • Aleter Profile Picture
    6 on at

    Super, works perfectly and smoothly, I Applied it on one form serving 11 galleries 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard