
The BarCodeReader is a non-visible UI element you can use for interacting with Barcode reading devices. You can use this in conjuction with a pocket PC equipped with a barcode scanner for mobile data entry. Please make sure you have installed system drivers and activated Barcode reader environment properly before you make use of this control.
Properties Overview
|
Name |
Interface |
Type |
Initial Value |
Bindable |
|
enabled |
IWDUIElement |
Boolean |
True |
bindable |
Events
onRead This event is triggered whenever the user scans a barcode. The following parameters are passed to the Event proceedure
|
Event Parameter |
Type |
Description |
|
CODE |
String |
Scanned barcode |
|
SYMBOLOGY |
String |
Type of barcode symbology |
When you want to obtain the received Barcode data you can do this inside the event handler function from the passed Event parameter. An example of how you can do this is shown below.
String status = (String) wdEvent.getParameters().get(CODE);
You can also discover the symbolology of the scanned barcode using the following code.
String status = (String) wdEvent.getParameters().get(SYMBOLOGY);