Retrieving the server groups

Each server group on the APS is represented by an InfoObject with a programmatic identifier (ProgId) of CrystalEnterprise.ServerGroup. The ServerGroup plugin provides this type of object with its unique functionality.

Note:    In order to manipulate or examine server groups, you must first have the CrystalEnterprise.ServerGroup plugin installed.

To retrieve a list of all server groups, use the following query:

var ServerGroups = IStore.Query("SELECT SI_GROUP_MEMBERS FROM CI_SYSTEMOBJECTS WHERE SI_PROGID='CrystalEnterprise.ServerGroup'");

In addition to the basic InfoObject properties such as ID and Title, you can also retrieve specific group information using the ServerGroup object. To retrieve the ServerGroup object, use the InfoObject's PluginInterface. For example, to add to the code above:

ServerGroupInfoObject = ServerGroups.Item(1);
ServerGroup = ServerGroupInfoObject.PluginInterface("");

Once, you have the ServerGroup object, you can use it to examine the group's members, and to add and delete members.

Next: Listing a group's members



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com