FindApplet Method for an Application

The FindApplet method returns the name of an applet.

Format

theApplication().FindApplet(appletName)

The following table describes the arguments for the FindApplet method.

Argument Description

appletName

String variable or literal that contains the name of an applet.

Usage

The only applets available are applets that are visible in the active view.

Used With

Browser Script

Examples

The following example is in Browser Script:

function Applet_ChangeFieldValue (field, value)
{
   if (theApplication().ActiveViewName() == "Account List View")
   {
      var newapplet = theApplication().FindApplet("Account Entry Applet");
      var entryappletcontrol = newapplet.FindControl("Name");
      var entryappletvalue = entryappletcontrol.GetValue();
      theApplication().SWEAlert(entryappletvalue);
   }
}