scanBarCode

Allow the user to scan a barcode with a mobile device

Syntax

ui.Interface.frontCall("mobile", "scanBarCode",
   [], [code, type] )
  1. code - Holds a string representation of the barcode.
  2. type - Holds the name of the barcode type.

Usage

The "scanBarCode" front call starts the barcode scanner to let the user scan a barcode with the device.

After reading the barcode, the front call returns the string representation of the barcode and the barcode type (i.e. symbology).

The code return parameter contains the barcode string.

The type return parameter indicates the type of barcode that was scanned.

If the barcode scan was canceled, the code return parameter is set to NULL and type is set to "canceled".
Table 1. Barcode type codes returned by GMI and GMA
Barcode type name (GMI/iOS) Barcode type name (GMA/Android) Description
Unsupported AZTEC Aztec barcode format
Unsupported CODEBAR CODABAR format
CODE-39 CODE_39 AKA Alpha39, Code 3 of 9 or USD-3 format
CODE-93 CODE_93 Intermec (Canada Post) format
CODE-128 CODE_128 High-density barcode (128 chars) format
Unsupported DATA_MATRIX Data Matrix format
EAN-8 EAN_8 European/International Article Number (8 digits) format
EAN-13 EAN_13 European/International Article Number (13 digits) format
I2/5 ITF Interleaved 2 of 5 format
ISBN-10 N/A International Standard Book Number (10 digits) format
ISBN-13 N/A International Standard Book Number (13 digits) format
Unsupported MAXICODE ISO/IEC 16023 format
Unsupported PDF_417 Portable Data File - 417 format
QR-Code QR_CODE Quick Response Code format
Unsupported RSS_14 GS1 DataBar (Reduce Space Symbology) format
Unsupported RSS_EXPANDED GS1 DataBar Expanded (Reduce Space Symbology expanded) format
UPC-A UPC_A Universal Product Code (12 digits) format
UPC-E UPC_E Universal Product Code (6 digits) format
Unsupported UPC_EAN_EXTENSION UPC/EAN extension format