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 / Confused by BrowseGall...
Power Apps
Answered

Confused by BrowseGallery1.Selected

(0) ShareShare
ReportReport
Posted on by 11

I am a VERY new user to Power Apps as I have been trying to find a viewer only frontend to a MS SQL database which Power Apps does quite happily. 

 

If I tell Power Apps to create a SQL Server app (I have the gateway installed and working) I pick the correct table, pick a couple of fields and it generates the app for me and it works fine. 

 

Now I am trying to recreate that from a blank tablet app I have everything working except for when it goes into the details screen, if I try and recreate the form, I can select the fields that I want to display, but then it wont let me use BrowseGallery1.Selected in the Item field under Data, so that it pulls through the selected item from the gallery. Says there is an error in the formula. 

 

Is there something I am missing with the Selected statement? 

 

Help me! 

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Did you set the Data Source of the form to be the same SQL data source?  Can you copy the specific error and formula?

    • Data Source of the form should be the same as the gallery
    • Item of the form should be BrowseGallery1.Selected
    • Some control in the Gallery should be set for Select(Parent)

    Those should be the only requirements.

  • derrickdml Profile Picture
    11 on at

    Yeh thats what I am thinking, both of the screen on my built from scratch app are using the same data source. The only difference between the two apps is the prebuilt one has the data source set to [production].[Part] and the from scratch one is just production.Part

     

    On the Browse screen is just does a Navigate(DetailScreen1, ScreenTransition.None)

    DetailScreen1 just has a DetailForm1 DataSource is [@'production.Part'] with the Item as BrowseGallery1.Selected, which is doesnt like. Where as the prebuilt is set to DetailScreen1 just has a DetailForm1 DataSource is [@'[production].[Part]'] with the Item as BrowseGallery1.Selected (not as issue) 

     

    The prebuilt was built be using the SQL phone layout button and the from scratch one was created via the Blank app Tablet Layout. 

     

     

  • timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    @derrickdml 

    I would double check the name of your gallery on your browse screen. The default gallery name may just be Gallery1, in which case, Gallery1.Selected is what you would use for the Item property on your form.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    Make sure the data source names are exactly the same in both the gallery and the form.  You've got some different punctuation in the detail screen.  I suspect you aren't pointing at the same data source in both places.

  • Verified answer
    derrickdml Profile Picture
    11 on at

    I managed to make it work, seems like it was the search function, so I have created a new app made a simpler search function and it just works now. 

    My next problem is how to link tables and such. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello, I have the same error in my App, how do you resolve this ?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard