Hi all,
What I am trying to do seems pretty simple but since there is no "SelectGalleryRow" behavior function, I am having trouble figuring it out or finding a solution that works for my situation.
I have a gallery shown and a "New Item" button which allows creation of a new record for that same table. Upon saving, I am patch that record into the table and hold the ID as a context variable. Now I want the gallery to immediately select that record. I thought this would be done by setting the Default of the gallery to:
First(Filter(Table1, ID = varNewID))
This doesn't seem to work though, and in fact I have trouble getting the Default property to do what I want it to do at all. Even setting that property as
First(Filter(Table1, ID = 3))
And then changing the number around to other numbers does not seem to select the appropriate record when using the Reset behavior for the gallery. It even seems that if I used that function set to, say, ID = 2 it will work the first time, but if I change it to ID=3, the Reset will still highlight the ID = 2 record.
Please help!