Hi, have an app where if user goes in to ammend an entry, it instead creates an additional entry.
First screen, user populates fields and onselect of save button is set to,
Collect(KBLCollection, {Date:DatePicker2.SelectedDate,Customer:Customer_ED.Selected.Value});
SaveData(KBLCollection, “KBLCollectKeep”)
Then navigates to a gallery (CollectGallery) where the user can select the arrow (which navigates to a second screen with textinput fields set to the gallery. e.g. CollectGallery.Selected.Customer. here they can edit the entry. On this screen i have an update record button with the onselect set to,
Patch(KBLCollection,CollectGallery.Selected,{Date:Date_2.SelectedDate,Customer:Customer_2.Selected.Value}); SaveData(KBLCollection, "KBLCollectKeep");
Problem i am having is when you amend the entry and select the update record button, rather then updating the existing entry, it creates a new one in the gallery.
Any ideas?