getNumberOfObjectsInGroup (webtop script and webtop tray applets)

Syntax

int 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

obNumber = 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
  • Webtop script applet
  • Webtop tray applet