We are setting the Product lookup on the Work Order Product form in mobile with offline enabled.
The value is setting correctly on the form, showing the Product name, and with the Product ID set, but the Unit Amount is not being set as it is when a user adds the same product to the form directly.
How can we trigger the standard Microsoft operations to set the Unit Amount etc as if the user had input the value on the form?
The script is run from a new field that reads a Product barcode to save the users inputting the product number into the Work Order Product.
We did have another script on the Product field, which we disabled for testing, and still the standard Microsoft functionality is not triggered on adding the product to the form.
We cannot save the form, as the Unit Amount is a required field, and the user has not yet entered the Quantity.