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 / Gallery.Selected doesn...
Power Apps
Unanswered

Gallery.Selected doesn't update upon selecting a record

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Thanks for reading. I'm experiencing a strange issue where one of my galleries doesn't update after a user has selected a record. The gallery however does update when I edit a control that uses the same data source, in the app studio. The gif below shows the problem.

 

Power Apps - Google Chrome 2022-08-11 11-26-46 (1) (1).gif

I'm using a bit of weird setup as per a specific feature request from our commercial team. Two screens are shown in the gif above:

  • Browse screen
    • Contains one large gallery with all records where user can search and open records. Upon opening a record, we navigate to screen two.
  • Edit screen
    • Screen with all the record detail. The section that shows "No information to display" is a form which I am using to update, create and delete records.
    • There is a second gallery on here (gly_quoteSelector) on the right-hand corner, underneath the "Select other quote under the same project" label. This gallery is "linked" to the main gallery. The reason for adding this is that the commercial team wants to navigate between records that share the same 4-digit project number without needing to go back to the browse screen. Source below:
      • PMS gly_quoteSelector source.png

Below is the flow of information (naming is not final, apologies):

Browse screenEdit screenEdit screenEdit screenEdit screenEdit screen
User selects record on main gallery (BrowseGallery1)Small gallery on edit screen (gly_quoteSelector) checks selected project number on Browse screen.Default on gly_quoteSelector is set to BrowseGallery1.SelectedForm Item is set to gly_quoteSelector.SelectedForm should display info for record selected on BrowseGallery1User can navigate between records using gly_quoteSelector.

 

Even weirder, this method works for some records, not for others. I have tested this for records where there are multiple records against the same project number, and records where they are the only project number - it seems completely random.

 

I'm really stuck on this problem, especially considering it's so inconsistent and updates when you update the app in the studio. Any ideas?

 

Best regards,

Guus

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @Anonymous ,

     

    Gallery.Selected seems to give issues like this more often. As a workaround, in the OnSelect of the Eye icon in the Browse screen, set a variable (Set(BrowseGallerySelected, ThisItem)) and then set the Default property of gly_QuoteSelector and the Item property of the form to refer to that variable.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If that doesn't work, use Lookup(datasource, ID=BrowseGallery.Selected.ID) as the items property of a form instead. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If that doesn't work, use LookUp(datasource, ID=BrowseGallerySelected.ID) as the items property of a form instead and make sure the datasource of the form is exactly the same as the datasource in the LookUp(). 

  • Community Power Platform Member Profile Picture
    on at

    Thanks @BCBuizer @Drrickryp, really appreciate the quick response.

     

    Buizer's response solved the problem!

  • jufguu Profile Picture
    133 on at

    Super hero

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