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 fail if the application has not yet been fully rendered in the browser.

Used With

Browser Script

Example

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:  This example is 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");
}

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