I have an app with only 1 screen and I am doing everything on this one screen.
There is a gallery that is conected to a SharePoint list in there and there is a DatePicker there too.
I have Filtered my Gallery so that it sorts results to me based on the date picker.
When i start the app the Gallery is either empty or there are some results in it depending on the Today().
I would preffer if the Gallery was empty every time until a date from the date picker gets selected.
Is there a way for me to do this?
I have tried following a suggested solution from a similar question. HERE.
By Shanescows
I am guessing something you changed is causing this. No problem, we will ignore it, and make your form act the way you want in this scenario.
1. For your Display Form set the Visible property to ShowMyForm
2. In your Gallery. Change the > icon to be Select(Parent);UpdateContext({ShowMyForm: true})
3. For the Screen that these items are on: change the OnVisible property for the screen to
UpdateContext({ShowMyForm: false})
All done.
To enhance the app a little I would add a Label that says "please select an item to see the details" and put it in the same spot as the display form. Then set the labels Visible property to !ShowMyForm How Fancy is that?
I couldnt figure out how i could do this and still remain on the same screen.