Hi guys
Im struggling with the BatchVerification control, which is presented to the user to confirm the Batch Number.
This can be configured on the Mobile Menu Item -> Work confirmation setup.
So when the user picks something and this setting to confirm the batch is set, the user has to confirm the Batch number (e.g. Scanning)
But i cannot set this controls value from code. To me it looks like this specific control is bugged, every other control I tested can be set via code.
My goal is describe in this post which seems to work in AX2012:
https://cloudblogs.microsoft.com/dynamics365/no-audience/2015/04/28/barcode-scanning-in-the-mobile-device/
tldr; I want to set the BatchId from scanning the initial ItemId (GS1 Barcode) which contains the information of the BatchId
but the same code for setting the controls value does not work in D365, for example like this:
fieldValues.insert(WHSWorkExecuteDisplayVerificationControls::BatchVerification, 'test');
// or
controlData.processControl(WHSWorkExecuteDisplayVerificationControls::BatchVerification, 'test');
does anyone have a clue? :)
thanks!