Table 69. Business Component Methods Syntax Summary
Method
|
Description
|
Syntax
|
|
Returns the business object that contains the business component.
|
var busComp; var busObject; busObject = busComp.BusObject();
|
|
Returns a value for the field specified in the argument.
|
var busComp; var value; value = busComp.GetFieldValue(fieldName);
|
|
Returns a formatted value for the field specified in the argument.
|
var busComp; var sValue; sValue = busComp.GetFormattedFieldValue(fieldName);
|
|
Returns the current search expression.
|
var busComp; var sExpr; sExpr = busComp.GetSearchExpr();
|
|
Returns the current search specification for the field specified in the argument.
|
var busComp; var sSpec; sSpec = busComp.GetSearchSpec(fieldName);
|
|
Returns the name of the business component.
|
var busComp; var sName; sName = busComp.Name();
|
|
Assigns a new value to the named field for the current row of the business component.
|
var busComp; busComp.SetFieldValue(fieldName, fieldValue);
|
|
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);
|
|
Commits to the database any changes made to the current record.
|
var busComp; busComp.WriteRecord();
|