Name Method for an Applet
The Name method for an applet returns the name of an applet.
Format
Applet.Name()
No arguments are available.
Used With
Browser Script, Server Script
Examples
The following example is in Browser Script:
function Applet_Load ()
{
//Display the name of the applet if the applet loads using the
//applet.Name() method that gets the name of the applet
var appletName;
appletName = this.Name();
theApplication().SWEAlert("The name of the applet is: " + appletName);
}
The following example is in Siebel eScript:
function WebApplet_Load ()
{
//Display the name of the applet if the applet loads using the
//applet.Name() method that gets 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 if the applet loads using the
' applet.Name() method that gets the name of the applet
Dim appletName As String
appletName = Me.Name
TheApplication.RaiseErrorText "The name of the applet is: " & appletName
End Sub