Secure Global Desktop Administration Guide > Applets > isDocument (webtop script and webtop tray applets)

isDocument (webtop script and webtop tray applets)

Syntax

String isDocument(String objectName)

Description

Returns "TRUE" if the object is a document; otherwise, it returns "FALSE".

objectName is the full TFN name of an object on the user's webtop.

This method can be used with either the webtop script applet or the webtop tray applet.

Examples

verdict = applet.isDocument(".../_ens/o=Indigo Insurance/ou=Finance/ou=Administration/cn=Phone List");
if (verdict == "TRUE")
    alert("The object is a document!");
else
    alert("The object is NOT a document!");

Displays a dialog indicating whether the Phone List object is a document or not.

Related topics