Table 75. Business Component Methods Syntax Summary
|
|
|
BusObject Method |
Returns the business object that contains the business component. |
var busComp; var busObject; busObject = busComp.BusObject();
|
GetFieldValue Method |
Returns a value for the field specified in the argument. |
var busComp; var value; value = busComp.GetFieldValue(fieldName);
|
GetFormattedFieldValue Method |
Returns a formatted value for the field specified in the argument. |
var busComp; var sValue; sValue = busComp.GetFormattedFieldValue (fieldName);
|
GetSearchExpr Method |
Returns the current search expression. |
var busComp; var sExpr; sExpr = busComp.GetSearchExpr();
|
GetSearchSpec Method |
Returns the current search specification for the field specified in the argument. |
var busComp; var sSpec; sSpec = busComp.GetSearchSpec(fieldName);
|
InvokeMethod Method |
Calls the specialized method named in the argument. |
var BusComp; var sReturn; sReturn = BusComp.InvokeMethod(methodName, methodArg1, methodArg2,..., methodArgn);
|
Name Method |
Returns the name of the business component. |
var busComp; var sName; sName = busComp.Name();
|
SetFieldValue Method |
Assigns a new value to the named field for the current row of the business component. |
var busComp; busComp.SetFieldValue(fieldName, fieldValue);
|
SetFormattedFieldValue Method |
Accepts the field value in the current local format and assigns the new value to the named field for the current row of the business component. |
var busComp; busComp.SetFormattedFieldValue (fieldName, fieldValue);
|
WriteRecord Method |
Commits to the database any changes made to the current record. |
var busComp; busComp.WriteRecord();
|