BusComp_SetFieldValue Event
If Siebel CRM sends a value to a business component from the Siebel client or through a call to the SetFieldValue method, then it calls the BusComp_SetFieldValue event. It does not call this event for a predefaulted field or for a calculated field. This event does not return any information.
Format
BusComp_SetFieldValue(FieldName)
The arguments you can use in this format are the same as the arguments described in ActivateField Method for a Business Component.
Used With
Server Script
Examples
In the following Siebel VB example, if Siebel CRM calls the SetFieldValue event, then it calls methods on an existing business component:
Sub BusComp_SetFieldValue (FieldName As String)
Dim desc As String
Dim newDesc As String
If FieldName = "Type" Then
newDesc = [can be any valid string that contains the new description]
desc = GetFieldValue("Description")
SetFieldValue "Description", newDesc
End If
End Sub
The following is the equivalent example in Siebel eScript:
function BusComp_SetFieldValue (FieldName)
{
if (FieldName == "Type" && GetFieldValue(FieldName) == "Account")
{
SetFieldValue("Description", "Record is of Type 'Account'." );
}
}