The collect() function used in OnChange is present here, and issues occur on both the web and mobile platforms.
Collect(
GateEntryLine,
{
PONumber: ThisItem.'Purchase order',
LineNo:Text( ThisItem.'Line number'),
ItemNo: ThisItem.'Item number',
POQty: ThisItem.Quantity,
QtyatGate: Value(qtyatgate_2.Text),
AssignedLocation: Coalesce(
ThisItem.'Default receipt location',
ThisItem.Location
),
Warehouse: ThisItem.Warehouse,
RecId: Text(ThisItem.RecId1),
Company: ThisItem.Company
}
),
UpdateIf(
GateEntryLine,
PONumber = ThisItem.'Purchase order' && LineNo = Text(ThisItem.'Line number'),
{QtyatGate: Value(qtyatgate_2.Text)}
)