Skip past navigation linksSecure Global Desktop Administration Guide > Applets > getTotalNumberOfObjects (webtop script and webtop tray applets)

getTotalNumberOfObjects (webtop script and webtop tray applets)

Syntax

Skip past command syntax or program codeint 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

Skip past command syntax or program codedocObjects = 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