Siebel Object Interfaces Reference > Interfaces Reference > Applet Methods >

Name Method


The Name method returns the name of the applet.

Syntax

oApplet.Name()

Argument
Description

Not applicable

 

Returns

A string containing the applet object name.

Used With

Browser Script, Server Script

Example

The following example is in Browser Script:

function WebApplet_Load ()
   {
   //Display the name of the applet when the applet loads using the
   //applet.Name() method to obtain the name of the applet
   var appletName;
   appletName = this.Name();
   alert("The name of the applet is: " + appletName);
}

The following example is in Siebel eScript:

function WebApplet_Load ()
{
   //Display the name of the applet when the applet loads using the
   //applet.Name() method to obtain the name of the applet
   var appletName;
   appletName = this.Name();
   TheApplication().RaiseErrorText("The name of the applet is: " + appletName);
}

The following example is in Siebel VB:

Sub WebApplet_Load
' Display the name of the applet when the applet loads using the
' applet.Name() method to obtain the name of the applet
Dim appletName As String
appletName = Me.Name
TheApplication.RaiseErrorText "The name of the applet is: " & appletName
End Sub

Siebel Object Interfaces Reference