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.