Siebel Object Interfaces Reference > Interfaces Reference > Applet Methods >

FindControl Method


FindControl returns the control whose name is specified in the argument. This applet must be part of the displayed view.

Syntax

oApplet.FindControl(controlName)

Argument
Description

controlName

Literal string or string variable containing the name of the desired control

Returns

The control object identified in controlName.

Usage

FindControl does not find controls for MVG applets, Pick applets, Associate applets, or detail applets that are not on the view's applet list.

Used With

Browser Script

Example

To use this example, read the notes for the SetLabelProperty Method.

function Applet_PreInvokeMethod (name, inputPropSet)
   {
   // Code to change the Font Size of the "Location" label
   if (name == "fontsize")
      {
      // Use FindControl() to get a reference to the control
      var ctl = this.FindControl("Location");

      ctl.SetLabelProperty("FontSize", "22"); // Set the font size
      return ("CancelOperation");
   }
}

Siebel Object Interfaces Reference