web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : GInmJ5RUBOzaih57BGwMVR
Power Apps - Building Power Apps
Unanswered

Gallery Items not showing within component

Like (0) ShareShare
ReportReport
Posted on 10 Nov 2022 15:26:06 by

Greetings, 

 

I created a gallery within a component, but every time I try to connect to data, it says that the name of the data source within items isn't recognized. My data source is a sharepoint list. Can someone please advise. 

Categories:
I have the same question (0)
  • Suggested answer
    TG-24091313-0 Profile Picture
    2 on 24 Sep 2024 at 13:33:29
    Gallery Items not showing within component
    Hi,
     
    Select the component and in right side you can see "Access app scope". Set "Access app scope " to true. then you can get gallery items in component.
     
  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 10 Nov 2022 at 15:33:19
    Re: Gallery Items not showing within component

    @Anonymous 

    You should not be accessing a datasource in your component!  The concept of a component is that it is independent of the hosting app.  Datasources are specific to an app, so trying to access the datasource in the app breaks the component concept.

     

    If you need to use a component still, then you should have an Input property on your component that is a table type property.  Then the definition of the record in the component property should reflect the schema of the records you need for your component and the gallery.  

    Example, an Items table property in your component that has a record schema of Table({Title: "title", Number: 1}) (as just a pure example!)

     

    The Items property of your Gallery in the component would then be based on that property and it would have a formula of:  Parent.Items

     

    Finally, once your component is placed in your app, then you would set the Items property of your added component to conform to the record schema.

    Example on the Items property:  ShowColumns(yourDataSource, "Title", "Number")

     

    This then provides you with a component that is independent of the app (as components were designed to be).

     

    I hope this is helpful 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete