Applet_ChangeFieldValue Event
The Applet_ChangeFieldValue event starts if the user uses an applet to modify data in a field. It does not return any information. For more information, see Applet_ChangeRecord Event.
Format
Applet_ChangefieldValue(fieldname, fieldValue)
The following table describes the arguments for the Applet_ChangeFieldValue event.
Argument | Description |
---|---|
FieldName |
A string that contains the name of the field that the user modified. |
FieldValue |
A string that contains the value that the user modified. |
Usage
Note the following usage of the Applet_ChangeFieldValue event:
If the user moves to a different record but does not modify a value in the previous record, then the ChangeFieldValue event does not start.
If the user modifies the value of a field, and if Siebel CRM modifies the value in another field that depends on some way on the value that the user modified, such as a calculated field, then the event starts once for each field whose value Siebel CRM modifies.
If the user uses a pick applet or popup applet to modify the data that a field contains, then this event does not start.
Used With
Browser Script
Examples
The following example is in Browser Script:
function Applet_ChangeFieldValue (field, value)
{
try
{
switch (field)
{
case "Primary Revenue Committed Flag":
if (value == "Y")
{
var thisBC = this.BusComp();
var sRev = thisBC.GetFieldValue("Primary Revenue Amount");
var sUpside = thisBC.GetFieldValue("Primary Revenue Upside Amount");
var total = sRev + sUpside;
if (total < 500000)
{
thisBC.SetFieldValue("Primary Revenue Committed Flag", "N");
theApplication().SWEAlert("Changing the Committed Flag to NO as
$500,000 in Revenue and Upside amount is required");
}
}
break;
}
}
catch(e)
{
// error handling routine
}