Is it possible to explicitly declare a collection and use it as the data source for a gallery? When I try, it acts as if I don't have a data source. I can't add fields and it finds no rows. In my test app, I'm using the following under the Items property of my gallery:
ClearCollect(CollectionX,{dummyfield:"x"})
I think that creating the collection under items creates a temporary collection (which means I shouldn't be creating a collection name that isn't linked to the data source), but I haven't found the syntax that allows me to define the records in such a way that they are recognized as a data source.
I'm thinking that perhaps the collection needs to already exist so I can select it for this gallery. Where would I put it, then? I already have code in the app's On Start property. And how could it serve as a data source for the gallery?