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

CompositeAb Decoder

The CompositeAb Decoder is used to enable or disable the Composite AB decoder.

Syntax

compositeAb (Decoder) <META> Syntax

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

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

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

e.g. Scanner.compositeAb = Value

Parameters

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

Name Possible Values Description Default Value
compositeAb:[Value] enabled/disabled Enables / Disables Composite AB decoder. N/A

Remarks

Requirements - Upca

In order to enable compositeAb barcode scanning, the upca decoder must also be enabled.

Requirements

RhoElements Version 1.0.0 or above
Supported Devices All supported devices.
Minimum Requirements Scanner or Imager module and device that supports Composite AB.
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 Composite AB labels:

<META HTTP-Equiv="scanner" Content="allDecoders:disabled">
<META HTTP-Equiv="scanner" Content="upca:enabled">
<META HTTP-Equiv="scanner" Content="CompositeAb:enabled">
<META HTTP-Equiv="scanner" Content="enabled">

Above example can also be written as shown below:

<META HTTP-Equiv="scanner" Content="allDecoders:disabled;upca:enabled;compositeAb:enabled;enabled">

or

function enableCompositeAb()
{
    scanner.allDecoders = 'disabled';
    scanner.upca = 'enabled';
    scanner.compositeAb = 'enabled';
    scanner.enable();
}
Back to Top