Siebel Object Interfaces Reference > Interfaces Reference > Applet Methods >
Name Method
The Name method returns the name of the applet. Syntax
Applet.Name()
Returns
A string containing the applet object name. Used With
Browser Script, Server Script Example
The following example is in Browser Script: function Applet_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().SWEAlert("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
|