
The UI element RFIDReader is a non-visible UI element you can use for interacting with RFID reader devices. Please make sure you have installed system drivers and activated RFID reader environment properly before you make use of this control.
Description of UI Element Properties
data
Specifies the path to the context node to which you have to bind the RFIDReader element. Depending on the value set to triggerMode, the property contains the data as follows:
|
read |
Data to be read from RFID tags |
|
write |
Data to be written to RFID tags |
|
kill |
Identifier of the RFID tags to be decommissioned. |
keyCode
Specifies the code of the device key with which the Web Dynpro action is to be triggered.
triggerMode
Specifies the working mode of the trigger. triggerMode can have the following values:
|
read |
The RFIDReader reads data from the RFID tags |
|
write |
The RFIDReader writes data to the RFID tags |
|
kill |
The RFIDReader decommissions data of the RFID tags |
Default value is read.
Properties Overview
|
Name |
Runtime value type |
Context Attribute Type |
Initial Value |
Bindable |
|
Data |
String |
String |
Bindable_mandatory |
|
|
enabled |
boolean |
boolean |
True |
Bindable |
|
keyCode |
String |
String |
Bindable |
|
|
triggerMode |
Stirng |
WDTriggerMode |
Read |
Bindable |
Events
onTrigger
This event is triggered when the user performs an operation as defined by the triggerMode property. The parameter passed to the event handler is the error status. The error status returns the following values:
|
triggerMode |
status value |
Description |
|
read |
< 0 |
Failure |
|
>= 0 |
Success |
|
|
write |
< 0 |
Failure |
|
>= 0 |
Success |
|
|
kill |
< 0 |
Failure |
|
>= 0 |
Success |
When you want to obtain the received RFID 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("status");