I've got a gallery on the screen with a text input field. When the value of the input field changes, I want to update the selected item with the new value but PATCH just keeps adding rows to the collection. I've got similar code on other screens that's working properly.
Patch(colAvailableItems, galNewOrder.Selected, {Qty: Value(txtNewOrderQty.Text)} );
The code to create the collection is on a button on a previous screen-
ClearCollect(datAvailableItems,'05bGetSkusForNewOrder'.Run(radProductType.Selected.Value, ddStore.Selected.LocationID, ddWeekNum.Selected.DeliveryDate, ddWeekNum.Selected.FiscalWeek, ddWeekNum.Selected.DistPOLocationID, ddWeekNum.Selected.OrderOnDate));
ClearCollect(colAvailableItems, RenameColumns(AddColumns(datAvailableItems, "Qty", 0, "Pieces", ThisRecord.BUM * "Qty"),"BUM", "CsPk"));
Navigate(storeNewOrder);
Any ideas?
colAvailableItems
) is added toitems
property of gallery?