Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 511 characters in body
Source Link

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?

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)} );

Any ideas?

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?

Source Link

Why does PATCH keep adding rows instead of updating the collection?

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)} );

Any ideas?