Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

Applet_Load Event


The Applet_Load event is triggered after an applet has loaded and after data is displayed.

Syntax

Applet_Load()

Argument
Description

Not applicable

 

Returns

Not applicable

Usage

You can use this event with form applets to dynamically hide or manipulate controls or set properties on an ActiveX Control. The following controls can be dynamically modified: CheckBox, ComboBox, TextBox, TextArea, Label.

NOTE:  Do not use the SWEAlert or RaiseErrorText methods in this event to display a popup. This can cause the browser to crash if the application has not yet been fully rendered in the browser.

Used With

Browser Script

Examples

Use this event to dynamically hide or manipulate controls or set properties on a control. The following controls can be dynamically modified: CheckBox, ComboBox, Label, TextArea, and TextBox.

NOTE:  These examples are only applicable to code on form applets.

function Applet_Load ()
{
   // Get the control instance.
   var ctrl = this.FindControl("FirstName");

   // Hide the control
   ctrl.SetProperty("Visible","false");

   // Hide the label
ctrl.SetLabelProperty("Visible", "hidden");
}

This event can also be used to filter records.

Function Applet_Load()
{
   var bc = this.BusComp();
   bc.SetSearchExpr("<new expression>");
   bc.ExecuteQuery();
}

Siebel Object Interfaces Reference