I have a gallery that updates a form with the gallery item selected. Now, when I am on the screen and use a filter on the gallery the form blanks. I would like it to auto select the first gallery item.
I'm not sure of this is related but if I navigate off the screen and then come back the last gallery item I viewed is still in the form instead of resetting. In this case I would also like to select the first item in the gallery.
One thing I did notice. If I choose the most recent record from and of the filters the form will populate. It won't do it for any older records(gallery items) unless I click on the item in the gallery.
Hope this is not confusing
I failed to read the continuation of your answer before responding. So let me see if I understand how to implement this.
Something like this?
Hmm. Interesting. It does select the first item in the gallery. Problem is when I select any other item in the gallery the form only shows the first item. I need to be able to select gallery items and at the same time default to the first item is none are selected. Sounds like I need to build out some logic
Hi @futr_vision ,
You can create a variable and use it on the Form.
//For getting 1st record use
First(Gallery1.AllItems)
You can use this to your variable or Form.
Note: You need to define you variable every time but direct reference can become unstable as if context is gone from other screen, your data may go blank or value may change based on filters. So, try keeping that constant with a variable else you select 1 record and then it changes the record and you will update other record.
Hope this helps
WarrenBelz
146,547
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional