Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

Applet_ChangeRecord Event


The ChangeRecord event is called when the user moves to a different row or view.

Syntax

Applet_ChangeRecord()

Argument
Description

Not applicable

 

Returns

Not applicable

Used With

Browser Script

Example

The following example is in Browser Script:

function Applet_ChangeRecord ()
{
   try
   {
      var thisBC = this.BusComp();
      var sFlag = thisBC.GetFieldValue("Primary Revenue Committed Flag");
      if (sFlag == "Y")
      {
         theApplication().SWEAlert("This record cannot be updated because it has
         been committed");
      }
   }
   catch(e)
   {
      theApplication().SWEAlert("Error in ChangeFieldValue and error is " +
      e.toString() + " " + e.errText());
   }
}

NOTE:  To return the value of the field to which you are navigating in the Applet_ChangeRecord event, use the BusComp.GetFieldValue() method. The control.GetValue() method returns data from the record you are leaving.

Related Topic

Applet_ChangeFieldValue Event

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