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 / gallery inside component
Power Apps
Answered

gallery inside component

(1) ShareShare
ReportReport
Posted on by 49
hello all
 
I'm trying to make a component, that have a gallery inside of it. The items of the gallery should ba a dataverse table:
 
 
so this is my components property:
the item of gallery1_2 is:  
GalleryRapport.Datasource
 
now on the screens sections where i put the component, i'm getting this error
 
 
Does anyone have a clue why this wount work?
 
my plan is to have a DD which employess can choose from and the component should filter according to the choosen one. so the "Datasource" should be something like: Filter(RapportQuestions, Rapport = Dropdown.Selected.Value)
 
hope somebody can help, side note: I have tried both as a component inside an app and as a component in a component libary, but i get the same issue.
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi,
     
    When you create a component, and when you add input what happens is, when its a record or a table, it generates a default bogus "record or table"
     
    Those sample fields are what they get called.
     
    What you need to do is go to the component. Click on it (like click the actual component line in the Component section) do not click anything under it.
     
    Now once you have it selected, in the Top Left Corner, the dropdown the usually shows you the Properties of the Screen, instead it will show the Properties of the Component. If its something that has an Input or more it will look like this
     
    PropertyNamne
         PropertyName1
         PropertyName2
     
    etc.
     
    You have to select the Property. When you do, in the Right side, where expressions go, you will see that Sample inserted Collection record or table. I think you said Table so it will be a Table
     
    You have to instead, replace those with the proper schema that matches the Table and or Collection you are passing in.
     
    So if you had
     
    {
      InputNumericProperty: 0, //where I put a default value of 0 as its a number
      InputStringProperty: Blank() or ""
    and so on
    }
     
    You HAVE to match the format and property type. You cannot put a numeric, but the Table has a string being passed in.
     
    THis will make your error go away
     
  • Jakob_hjort Profile Picture
    49 on at
    Yeah well i my purpose was to make it dynamic based on the datasource behind. Thanks for the answer, i went anotherway and just added a gallery inside the different apps, since i got some complex columns. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard