AllDecoders Module

RhoElements 2.x API

Overview

The AllDecoders Module is used to set the barcode scanner to read all barcode types that the scanner is capable of reading.

Syntax

allDecoders (Decoder) <META> Syntax

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

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

e.g. scanner.allDecoders = Value;

Parameters

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

Name Possible Values Description Default Value
allDecoders:[Value] enabled / disabled Enable / Disables all available decoders N/A

Remarks

Exception

Some decoders will not be enabled as some symbologies use the same systems to encode data, making it impossible to differentiate between them. For example: "canpostal" and "auspostal" both use a 4-state system, so devices will only enable either "canpostal" OR "auspostal" when "alldecoders" is enabled. Note that other symbologies also share the 4-state system.

Requirements

RhoElements Version 1.0.0 or above
Supported Devices All supported devices.
Minimum Requirements Zebra barcode scanner hardware.
Persistence Transient - Decoder settings are only guaranteed to persist until the Scanner is disabled

HTML/JavaScript Examples

The following example enables all available decoders then turns on the scanner:


<META HTTP-Equiv="scanner" Content="allDecoders:enabled">
<META HTTP-Equiv="scanner" Content="enable">

The following example enables all available decoders then turns on the scanner:


<META HTTP-Equiv="scanner" Content="allDecoders:enabled;enable">