Overview
The UpcaPreamble Decoder Setting is used to set the upcapreamble property which controls the preamble applied to the bar code.
Syntax
upcaPreamble (Decoder Setting) <META> Syntax |
---|
<META HTTP-Equiv="scanner" content="upcapreamble:[parameter]"> |
upcaPreamble JavaScript Object Syntax: |
---|
By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the upcaPreamble. |
To Set upcaPreamble parameters via JavaScript use the following syntax: scanner.Parameter = Value;
e.g. scanner.upcaPreamble = Value; |
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name | Possible Values | Description | Default Value |
---|---|---|---|
upcaPreamble:[Value] | none / systemChar / countryAndSystemChars | if value is none Applies no preamble to the bar code.if value is systemChar then Applies system character preamble to the bar code.if value is 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 upca. |
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 upca labels with the preamble property set to both system and country code preamble:
<META HTTP-Equiv="scanner" Content="upca:enabled">
<META HTTP-Equiv="scanner" Content="upcapreamble:countryAndSystemChars">
<META HTTP-Equiv="scanner" Content="enabled">
Above example can also be written as shown below:
<META HTTP-Equiv="scanner" Content="upca:enabled;upcapreamble:countryAndSystemChars;enabled">
or
<META HTTP-Equiv="scanner-upca" Content="enabled">
<META HTTP-Equiv="scanner-upcapreamble" Content="countryAndSystemChars">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">