Retrieving the Value of a Data Item

Use getFieldValue to retrieve the value of a Data item on an Ispec. This method accepts the name of the Data item as a parameter, and returns the current value of this field, for example:

txtCustName.Text = mvarCurrentIspec.getFieldValue("CUSTNAME")

This statement retrieves the value of the data item called CUSTNAME on the current Ispec and stores it in txtCustName.Text.

Notes:

  • Data item names that include a hyphen in the name must have the hyphen converted to an underscore when used in the Component Enabler client. This is a Java restriction. For example, a Data item called CUST-NO must be referenced as CUST_NO in a Component Enabler client: txtCustNo.Text = mvarCurrentIspec.getFieldValue("CUST_NO")

  • If you generate with “getters and setters”, you should be able to access the fields as if they are attributes of the Ispec objects. The COM interface automatically converts them to the appropriate calls, for example, txtCustNo.Text= mvarCurrentIspec.CUST_NO.