
Announcements
Dear , all
After I create or modify an item ,how to set the app to select that item that i just created or modified by defalut.
Now ,after I sumbit the new item or modify the item ,there is no item selected in the Gallary by default.
DATA SOURCE : Sharepoint list
Check the Item property of your Form. If it is referencing the Gallery.Selected property, then change it to a variable.
So, in your Gallery, set the OnSelect action that brings the record to your form to be something like:
Set(glbCurrentRecord, ThisItem)
Then set the Item property of your form to: glbCurrentRecord
In your Form OnSuccess action, add the following formula: Set(glbCurrentRecord, Self.LastSubmit)
Then, change the Default property of your Gallery to: glbCurrentRecord
I hope this is helpful for you.