Hi all,
I have a gallery that has comboboxes and datepickers which will update to a collection if OnChange is triggered. This will then patch to the Sharepoint list once a save button is clicked.
I am having an issue where once the button is clicked, while the Patch runs successfully, all my gallery items are re-collected back into the collection as if a change was made. The comboboxes DefaultSelectedItems=ThisItem.ColumnaName and likewise for the DefaultDate.
If I run OnStart to clear the collection, the collection is empty and no OnChange is triggered. However, once I go back to press the save button, OnChange is triggered for ALL records and my collection is full and will not clear again, triggering a loop where all item are constantly added into the collection.
Save button OnSelect is: If(CountRows(colUpdates)>0,Patch('QC Scheduling (AMATS)',colUpdates));Notify("Success", NotificationType.Success);Clear(colUpdates);
Please advise on what is going on as it seems like something is triggering PowerApps to detect that a change is being made.