This section illustrates how to add and delete user groups. A group is simply another InfoObject in the Crystal Enterprise system; its programmatic identifier is CrystalEnterprise.UserGroup and its specific behavior is provided by the UserGroup plugin. See UserGroup Object in the reference for details.Retrieve the groups in the APS by using InfoStore.Query.
Before you read this section, it is recommended that you read both the Tutorial and the chapter on Architecture.
var Groups = IStore.Query("SELECT SI_ID, SI_NAME FROM CI_SYSTEMOBJECTS WHERE SI_PROGID='CrystalEnterprise.UserGroup'");
Response.Write (Groups.Item(k).Title);
Once you know the ID of the group you want, you can manipulate it. In the next section, a group is removed from the APS.
Go to the next section: Deleting a group.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |