Hello,
in MyScreen.OnVisible / MyScreen.OnHidden / CancelIcon.OnSelect, I use the following to clear the selection in MyGallery:
UpdateContext({MySelection: MyGallery.Selected}); UpdateContext({MySelection: {}})To make this work, MyGallery is configured to
MyGallery.Default = MySelection
It seems to work like a charm. MyGallery shows all items but none is selected. When I select an item, it shows in MyForm by using
MyForm.Item = MyGallery.SelectedItem
When I click on the CancelIcon it resets MyGallery and the MyForm got nothing to show.
Once I submit the form using SubmitIcon.OnSelect:
SubmitForm( MyForm )
Now resetting the gallery doesn't work anymore, instead the last Submitted item is selected. Even if I select another item and click on CancelIcon, the last submitted item is selected.
Any help what I am doing wrong or how to wok this is highly appreciated,
Dennis