EasyManuals Logo

Code CR1500 Programming Guide

Code CR1500
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #32 background imageLoading...
Page #32 background image
D028868 CR1500 CR1100 CR2700 JavaScript Programming Guide User Manual Page 32 of 41
The Code Corporation
12393 South Gateway Park Place, Suite 600, Draper, UT 84020
+1 (801) 495-2200
FAX +1 (801) 495-0280
rules_onConfgure(data)
When a configuration code is read, rules_onConfigure() is called with the contents of
the configuration code as data. If the configuration data is handled in
rules_onConfigure(), the value “true” is returned which will stop further action by
reader.onConfigure().
In the example below, the rules_onConfigure() calls
jsSettings.parseUserParams() to scan the configuration data for a JavaScript user
parameter command and returns “true” if the configuration data was handled successfully,
otherwise “false”.
Example:
include(".settings.js");
rules_onConfigure = function(data)
{
if( jsSettings.parseUserParams )
return jsSettings.parseUserParams(data);
return false;
};
Optional Global variables
The writer can include global variables in JavaScript Rules file, outside any of the pre-defined
functions. These variables will be instantiated when the reader starts, as the JavaScript engine
starts.
.setttings.js
Code provides the ability to store persistent user settings by including “.settings.js” to an application
or rules file. Configuration barcodes may be created and must match the following format:
<JS Identifier> JSUP <P | S | R | G> <PP> <Val>, where
<JS Identifier>: Identifier indicating that this command is to be handled exclusively by JavaScript:
\x1
JS: Primary Category
UP: Sub Category
<P | S| R | G>: Action: Put, Set, Reset, or Get
<PP>: Two character parameter ID
<Val>: Quoted (optional) string
Example 1:
\x1bJSUPSP01 JSUPSP0”1”
Example 2:
\x1bJSUPSP1”exampleString” \x1bJSUPSP1exampleString

Table of Contents

Other manuals for Code CR1500

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Code CR1500 and is the answer not in the manual?

Code CR1500 Specifications

General IconGeneral
BrandCode
ModelCR1500
CategoryBarcode Reader
LanguageEnglish

Related product manuals