Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Upce0preamble Decoder Setting

The Upce0preamble Decoder Setting is to set the upce0-preamble property which controls the preamble applied to the bar code.

Syntax

upce0preamble (Decoder Setting) <META> Syntax

<META HTTP-Equiv="scanner" content="upce0preamble:[parameter]">

upce0preamble JavaScript Object Syntax:
By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the upce0preamble.
To Set upce0preamble parameters via JavaScript use the following syntax: scanner.Parameter = Value;

e.g. scanner.upce0preamble = Value;
Upce0preamble Ruby Object Syntax:
By default the Ruby Object 'Scanner' will exist on the current page and can be used to interact directly with the Upce0preamble.
To Set Upce0preamble parameters via Ruby use the following syntax: Scanner.Parameter = Value

e.g. Scanner.upce0preamble = Value

Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description Default Value
upce0preamble:[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 upce0.
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 upce0 labels with the preamble property set to both system and country code preamble:

<META HTTP-Equiv="scanner" Content="upce0:enabled">
<META HTTP-Equiv="scanner" Content="upce0preamble:countryAndSystemChars">
<META HTTP-Equiv="scanner" Content="enabled">

Above example can also be written as shown below:

<META HTTP-Equiv="scanner" Content="upce0:enabled;upce0preamble:countryAndSystemChars;enabled">

or

<META HTTP-Equiv="scanner-upce0" Content="enabled">
<META HTTP-Equiv="scanner-upce0preamble" Content="countryAndSystemChars">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">
Back to Top