Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Multiple Browse Galleries showing same record

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

  • timl Profile Picture
    timl 31,946 on at
    Re: Multiple Browse Galleries showing same record

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

  • Markswan20 Profile Picture
    Markswan20 121 on at
    Re: Multiple Browse Galleries showing same record

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

  • Verified answer
    timl Profile Picture
    timl 31,946 on at
    Re: Multiple Browse Galleries showing same record

    @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
    Markswan20 121 on at
    Re: Multiple Browse Galleries showing same record

    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.
  • timl Profile Picture
    timl 31,946 on at
    Re: Multiple Browse Galleries showing same record

    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.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard