
25
Programming Concepts
gui.showForm(warning);
return null;
}
else if (data matches format that is to be ignored)
{
return false; // invalidate the decode
}
else // code should be processed by handheld firmware
{
if ( code should be processed
with transformed data)
{
decode.data = data; // replace the data field
// with transformed data
}
return decode;
}
}
3.5.1
Transform Data by Symbology
Barcodes read by the handheld are encoded in unique symbologies. Particularly within
two-dimensional codes, common data items may be present in different locations within
the decode depending on the encoding symbology. In the example, line 5 checks the value
of decode.symbology and transforms the decode data to a common format. To check
symbology, compare decode.symbology against the symbology codes documented in the
Interface Configuration Document.
Note!
Sometimes symbology is used to distinguish otherwise like-formatted data; for example, shelf
tags may have the same number of digits as UPC codes for the products on the shelves, but
have different barcode symbologies that can be used to determine whether the decode is a
shelf tag or a product UPC code.