Siebel Object Interfaces Reference > Interfaces Reference > Business Component Events >

BusComp_SetFieldValue Event


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)

Argument
Description

FieldName

String containing the name of the affected field

Returns

Not applicable

Used With

Server Script

Example

This Siebel VB example shows how to invoke methods on an existing business component 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 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'." );
   }
}

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.