Developer

External Field―OpenUI Control

The external field―OpenUI control edit type is defined to call out from a field to an OpenUI control. Values may be passed to this control from Agentry Client.

External Field―OpenUI Control Attributes

The following attributes are specific to the External Field control field edit type. These are in addition to the common field attributes.

Attribute

Description

Scan Settings

(Open Scan) Used to provide your own scanning interface to something like NFC, RFID or other input you want to treat as a scanned value. The value your Open Scan code passes to Agentry as a scan value which triggers the default controls.

External Values

Reference external values beside the property the control extends from your OpenUI control. For example, you can use it to pass specific values to your control.

Agentry Values

Reference other values beside the property the control extends from your OpenUI control. For example, you can use it to make your control more generic by passing in configuration values upon which your control reads and acts.

Actions

Defines the Agentry actions your OpenUI control can invoke and what their target is. From within your Open UI code you can then trigger these actions to execute. For example in the GIS control you can select a point on the map and call an Agentry Action to create a new work order which would then display the Agentry transaction wizard screens.

Sample OpenUI Code

You also need to define OpenUI code to handle the data exchange. In this example, "Class Name" and "External Value" are used to obtain external values from an OpenUI project for the Agentry project. "ExtRFID" is the name of the external value, and "NfcDataBean.getNfcValue()" is the value.
public class Z_RFIDButtonAdapter extends ButtonDisplayAdapter implements OnClickListener
{
...
@Override
public String getExtensionString(String name)
   {
   String value = "";
   if (name.equals("ExtRFID"))
      {
      value = NfcDataBean.getNfcValue();
      }
   return value;
}