Overview
The Upce1preamble Decoder Setting is used to set the upce1-preamble property which controls the preamble applied to the bar code.
Syntax
| upce1preamble (Decoder Setting) <META> Syntax | 
|---|
<META HTTP-Equiv="scanner" content="upce1preamble:[parameter]">  | 
| upce1preamble JavaScript Object Syntax: | 
|---|
| By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the upce1preamble. | 
| 
To Set upce1preamble parameters via JavaScript use the following syntax: scanner.Parameter = Value;
 e.g. scanner.upce1preamble = Value;  | 
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
| Name | Possible Values | Description | Default Value | 
|---|---|---|---|
| upce1preamble:[Value] | none / systemChar / countryAndSystemChars | if none Applies no preamble to the bar code. if systemChar Applies system character preamble to the bar code.if countryAndSystemChars Applies both system and country code preamble to the bar code. | Device specific | 
Requirements
| RhoElements Version | 1.0.0 or above | 
|---|---|
| Supported Devices | All supported devices. | 
| Minimum Requirements | Scanner or Imager module and device that supports upce1. | 
| Persistence | Transient - Decoder settings are only guaranteed to persist until the Scanner is disabled | 
HTML/JavaScript Examples
The following example enables the scanner to read only upce1 labels with the preamble property set to both system and country code preamble:
<META HTTP-Equiv="scanner" Content="upce1:enabled">
<META HTTP-Equiv="scanner" Content="upce1preamble:countryAndSystemChars">
<META HTTP-Equiv="scanner" Content="enabled">
The following example enables the scanner to read only upce1 labels with the preamble property set to both system and country code preamble:
<META HTTP-Equiv="scanner" Content="upce1:enabled;upce1preamble:countryAndSystemChars;enabled">
The following example enables the scanner to read only upce1 labels with the preamble property set to both system and country code preamble:
<META HTTP-Equiv="scanner-upce1" Content="enabled">
<META HTTP-Equiv="scanner-upce1preamble" Content="countryAndSystemChars">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">