The BarcodeScanner Module provides barcode and QR code scanning functionality when the viewer is run in the Geocortex Mobile App Framework. This allows a user to edit a feature by scanning a barcode or QR code that matches a configurable field name. If the scanned value does not match any existing field name, the user can use the scanned value to either create a new feature with the user's current position, or select a feature to assign the scanned value.
To provide this functionality, use the CreateOrEditFeatureFromBarcodeScan
command, and supply a command parameter object or JSON string with two properties:
featureServiceID
: The ID of the feature service for which to create or edit a feature.
scanResultFieldName
: The field name for which to set when creating a new feature, or search to edit an existing feature.
For example, {"featureServiceID": 1, "scanResultFieldName": "MY_FIELD_NAME"}
.
Module
htmlScannerView
: The view ID for scanning barcodes and QR codes. The default is BarcodeScannerView
.
Views
BarcodeScannerView
:
View Models
BarcodeScannerViewModel
: No configuration
properties