Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

Applet_ChangeFieldValue Event


The ChangeFieldValue event fires after the data in a field changes through the applet in the user interface.

Syntax

Applet_ChangefieldValue(fieldname, fieldValue)

Argument
Description

FieldName

A string representing the name of the field whose value changed

FieldValue

A string representing the new value assigned to FieldName

Returns

Not applicable

Usage

ChangeFieldValue fires after the data in a field changes, but not when a user moves to a different record without changing a value in the previous record. If a user changes the value in a field, and other dependent fields, such as calculated fields, change as a result, the event fires once for each field whose value changed.

NOTE:  This event does not trigger for changes made in pick applets or popup applets.

Used With

Browser Script

Example

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");
               alert("Changing the Committed Flag to NO as $500,000 in Revenue + Upside amount is required");
            }
         }
         break;
      }
   }
   catch(e)
   {
      alert("Error in ChangeFieldValue and error is " + e.toString() + " " + e.errText());
   }
}

See Also

Applet_ChangeRecord Event

Siebel Object Interfaces Reference