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

getTotalNumberOfObjects (webtop script and webtop tray applets)

Syntax

int getTotalNumberOfObjects (String objectType)

Description

Returns the number of objects of type objectType found on the user's webtop. If the webtop is in hierarchy mode, returns the number of objects found on all open levels of the hierarchy.

objectType may be "GROUPTYPE" "ALLTYPE" "APPLICATIONTYPE" or "DOCUMENTTYPE".

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

Examples

docObjects = applet.getTotalNumberOfObjects("DOCUMENTTYPE");
alert("The number of document objects on the webtop is: " + docObjects);

Displays the number of document objects on the user's webtop.

Related topics