Siebel Object Interfaces Reference > Interfaces Reference > Applet Events >

WebApplet_Load Event


The Load event is triggered just after an applet is loaded.

Syntax

WebApplet_Load()

Argument
Description

Not applicable

 

Returns

Not applicable

Usage

Do not call TheApplication().ActiveBusObject from WebApplet_Load because it returns a null. Instead use this.BusObject() to obtain a reference to the current business object.

Used With

Server Script

Example

The following example is in Siebel eScript:

function WebApplet_Load ()
{
   try
   {
      var currBC = this.BusComp();
      with (currBC)
      {
         SetViewMode(OrganizationView);
         ClearToQuery();
         SetSearchSpec("Last Name", "A*");
         ExecuteQuery(ForwardBackward);
      }
   }
   catch (e)
   {
      TheApplication().RaiseErrorText(e.errText);
   }
}

The following example is in Siebel VB:

Sub WebApplet_Load
   Dim iReturn As Integer
   Dim currBC As BusComp
   Set currBC = Me.BusComp
   With currBC
      .SetViewMode OrganizationView
      .ClearToQuery
      .SetSearchSpec "Last Name", "A*"
      .ExecuteQuery
   End With
End Sub

Related Topics

Applet_InvokeMethod Event
Application_InvokeMethod Event
WebApplet_PreCanInvokeMethod Event

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