GetFieldValue Method
The GetFieldValue method returns the value of a field for the current record or for the record object that Siebel Open UI examines. It uses the following syntax:
Buscomp.GetFieldValue("field_name",pRecord)
where:
field_name is a string that contains the name of a field. Siebel Open UI returns the value that this field contains.
pRecord
is an optional argument that returns the entire record that Siebel Open UI examines. If you do not specify pRecord, or if it is empty, then GetFieldValue returns only a value in field_name of the active record.
For example, the following code returns the value of the Account Name field from the current record of the business component:
Buscomp.GetFieldValue "Account Name")
For another example, the following code returns the field value of the Account Name field. A business component can include more than one record, but only one of these records is the active record. You can use pRecord to get the value of a field from a record that is not the active record:
Buscomp.GetFieldValue("Account Name",recordObject)
The GetFieldValue method returns an object that includes an error code and a return value. For more information, see Configuring Error Messages for Disconnected Clients and SetErrorMsg Method.
For more examples that use the GetFieldValue method, see the following topics:
You can configure Siebel Open UI to override the GetFieldValue method.