The GatewayInput Object
This topic is divided into the following sections:
For more general information on data access and how it is handled with eSuite applets, refer to the "eSuite and Data Access" topic.
This class extension of the CGI Gateway applet creates a "watch list" for items on the Infobus. The containing object is called back when items on the watch list are found or when they are changed.
Items are added to the watch list by the following GatewayInput object methods
Optionally, the owning object can use the setParameterString property of the CGI Gateway applet to specify a string pattern containing both the field names and their context.
Items on the watch list are interpreted in one of the following three ways:
- Immediate items have their value specified along with their name.
- Field items are sent to the server with the dataset name used as the left-hand side of the CGI name/value pair; the value of the data item completely defines the right-hand side.
- DataSet items consist of the name of a data item to look for on the Infobus. When found, the item is interpreted as a vector of columns. The first column of each row defines the name of the item to send to the server, and subsequent columns are concatenated to form the value.
The following methods are available for programming the GatewayInput object via JavaScript:
createImmediateItem method
createDataSetItem method
createFieldItem method
See also
CGI gateway applet
GatewayOutput object
parameterString property