onScan
The scan events gets triggered when a barcode (or 2D code) is scanned, e.g. by using the wedgeScanner control. You can then ask the control for the scanned code.
Simple Example
console.log("The scanned code is: " app.getFieldValue("myScannerControlId"));
Example using the GS1 Splitter business function
let result = await app.businessFunction({
functionName: "Gs1Splitter",
methodName: "Split",
gs1Code: app.getFieldValue("myScannerControlId"),
});
console.log(result);
Last updated
Was this helpful?