Scanner external object enables to programmatically scan barcodes (2D and QR Codes) using the device's camera.
See also Scanner Control to associate an Edit control (attribute or variable) the possibility to enter barcode information to the field directly from the camera.
It does not have any.
To scan a linear barcode or QR code and optionally filtering a specific list of Barcodes.
Return value |
VarChar(200) |
Parameters |
[ barcodeTypes:Collection(BarcodeTypes) ]
|
To scan several barcodes at once with optionally using a specific list of barcodes. User intervention is not required until it decides to stop reading.
Return value |
ScannedBarcodes |
Parameters |
[ beepOnEachRead:Boolean ] [ , barcodeTypes:Collection(BarcodeType) ]
|
It does not have any.
In the shopping cart scenario, suppose we have a Scan button in the Layout, to read a product barcode, add it automatically to the cart and finally edit the product in the cart to show the product info and to indicate the quantity:
Event 'Scan'
Composite
&EANBarcodeTypes.Add(BarcodeType.EAN_13)
&ScanBarcode = ScannerAPI.ScanBarcode(&EANBarcodeTypes)
&CartItemId = CartItem_InsertButNotConfirmed(&ScanBarcode,&Messages)
WorkWithDevicesCartItem.CartItem.Detail(&CartItemId, &ScanBarcode)
EndComposite
EndEvent
Supported barcode types.
- Collection( Barcode:VarChar(200) )
A set of scanned barcodes values.
The device camera can be used in multiples scenarios in order to enter information more easily without the user requiring typing; for instance:
- Retrieve store's product information from its linear barcode and adding to the shopping cart (app example: Tienda Inglesa)
- Add contact information reading personal cards/tags including QR Codes (app example: GeneXus Event)
- Read a sequence of several codes (linear or QR codes) until the user decides to stop reading. This can be useful to emulate a supermarket cashier.
Platforms |
SmartDevices(Android,iOS) |
This external object is available as form GeneXus X Evolution 2 Upgrade 3.