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"));

let result = await app.businessFunction({
  functionName: "Gs1Splitter",
  methodName: "Split",
  gs1Code: app.getFieldValue("myScannerControlId"),
});
console.log(result);

Last updated