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

getNumberOfObjectsInGroup (webtop script and webtop tray applets)

Syntax

Skip past command syntax or program codeint getNumberOfObjectsInGroup (String groupName,
                               String objectType)

Description

Returns a count of objects from an open application group.

groupName is the full TFN name of the application group from which to obtain the count.

objectType defines which objects are included in the count, and may be "GROUPTYPE", "ALLTYPE", "APPLICATIONTYPE" or "DOCUMENTTYPE".

Note To use this method, the UseHierarchy parameter must be set to true.

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

Examples

Skip past command syntax or program codeobNumber = applet.getNumberOfObjectsInGroup(".../_ens/o=Indigo Insurance/cn=Applications", "DOCUMENTTYPE");
alert("The number of documents in the Applications group is: " + obNumber);

Displays the number of documents in the Applications group.

Related topics