Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Events >
BusComp_SetFieldValue
The SetFieldValue event is called when a value is pushed down into the business component from the user interface or through a call to SetFieldValue. This event is not triggered for any predefaulted or calculated fields in Siebel Tools.
Syntax
BusComp_SetFieldValue(FieldName)
Returns
Not applicable
Used With
Server Script
Example
This Siebel VB example shows how to invoke methods on an existing BusComp when the SetFieldValue event is triggered.
Sub BusComp_SetFieldValue (FieldName As String)
Dim desc As String
Dim newDesc As String
If FieldName = "Type" Then
newDesc = [can be any valid string containing the new description]
desc = GetFieldValue("Description")
SetFieldValue "Description", newDesc
End If
End SubHere is the equivalent example in Siebel eScript.
function BusComp_SetFieldValue (FieldName)
{
if (FieldName = "Type")
{
var newDesc = "Any valid string which contains " +
"the new description.";
var desc = GetFieldValue("Description");
SetFieldValue("Description", newDesc);
}
}
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |