Scan, Pack and Ship > Scanner Input > Configuring Scanner Input
  
Configuring Scanner Input
The system value key SCANNER_CONFIG is expressed via a JSON representation of a JavaScript literal object. This system value enables you to:
Configure the default barcode context.
Set up predefined text values and their corresponding actions.
Add scanner pattern matching for scanner contexts.
Drop default scanner contexts.
Add new scanner contexts.
Add validation patterns for data received under scanner contexts.
Modify the automatic switching of barcode contexts.
To simplify the setup process, a sample configuration is provided under the system value key SCANNER_CONFIG *SAMPLE*. The following table lists the parent object members in the JavaScript literal object and describes the function of each object member in configuring the Scan, Pack and Ship screen.

Parent Object Members
 
Object Member
Function
defaultBarcodeContext
Holds the default scanner context.
barcodeActionObject
Used to add new barcode action objects or override existing barcode action objects.
scanRegExpList
Used to match regular expression patterns with barcode scan contexts. The entered barcode value is compared against these regular expressions. If it matches one of them, you use the configured context for interpreting the barcode scan. In system values, the character sequence BACKSLASH can be used to represent a \ when expressing a validation regular expression.
droppedScanContext
Can be used to drop default contexts.
scanContextList
Allows you to update existing barcode scanner contexts or add new barcode scan contexts. As the member droppedScanContext is evaluated first, you can replace a barcode context by including it in the droppedScanContext and scanContextList members.