Set(myorder,orderid.Run().orderid);
Patch(
Orders,LookUp(Orders,Title=myorder),
{
'Item Count': Value(Label21.Text),
'Total Amount': Value(Label9.Text)
}
);
ForAll(
Gallery2.AllItems,
Patch(
'product Items',
Defaults('product Items'),
{
Title: ThisRecord.Label5.Text,
Quantity: ThisRecord.Label6.Text,
Amount: ThisRecord.Label7.Text,
'Order ID':{Value:"",Id:LookUp(Orders,Title=myorder,ID)}
}
)
);
ForAll(
Gallery2.AllItems,
Patch(
Products,LookUp(Products,Title=Label5.Text),{Stock:Value(ThisRecord.Label6_1.Text)})
);
Refresh(Products);
UpdateContext({varplace:true});
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.