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 / Multiple Browse Galler...
Power Apps
Answered

Multiple Browse Galleries showing same record

(0) ShareShare
ReportReport
Posted on by 121

Hi.

I have 5 different versions of the same gallery with thd search pre populated and then hidden.

When I click on a record in the primary Gallery the record opens correctly. When I click on any item in the others it opens the original record from the 1st. 

I understand I need to somehow link the other galleries but don't know how.

 

Thanks

Categories:
I have the same question (0)
  • timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    Hi @Markswan20 

    This is most likely because you're using a Form to display the record and the form is connected to your primary gallery.

    If this is the case, add the following to the OnSelect property of your galleries:

    Set(varRecord, ThisItem)

    If you then set the Item property of your form control to varRecord, it should display the selected record from whatever gallery you selected.

  • Markswan20 Profile Picture
    121 on at

    Thanks for the reply, 

     

    • In the gallery I have code in the OnSelect Navigate(DetailScreen1, ScreenTransition.None)

    I have tried the Set(varRecord, ThisItem);

     

    • Before the onselect but it still takes me to the wrong record.
  • Verified answer
    timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    @Markswan20 

    You'll need to change the OnSelect of the gallery like this:

    Set(varRecord, ThisItem);
    Navigate(DetailScreen1, ScreenTransition.None)

    Can you confirm that you've changed the Item property of the Form in DetailScreen1 to be varRecord?

  • Markswan20 Profile Picture
    121 on at

    Awesome, works a treat, I was seriously over complicating this so thank you

  • timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    You're welcome @Markswan20 - glad that's working for you.

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

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard