 |
| |  |
Home In This Issue Email a Friend EasyPrint
 | |
|
PROGRAMMING POWER
Inside mail distribution: the programming project
By Mick Moignard
In my other article, I showed you how my System Managed Groups application looks to the administrator. You're now probably asking yourself, "So how does all this actually work?" Well, I intend to show you exactly how I did it.
Let's start with the forms. There are two simple forms that are used as profiles. The first one, NabFields, is used to maintain a list of the fields in the Directory that are then used in Rules. This profile is here simply to ensure that on Rule documents, the field names cannot be misspelled and that only certain fields in the Directory may be used for Rules. The other profile, NonManaged Groups, is used to create a list of groups that the application is not to touch. This profile content is used when selecting group names on the Group definition form, and the processing agent also uses it.
The other two forms, the Rules and the Groups forms, we have already seen as the user sees them. The Rules form has nothing special about it that merits further discussion. On the Groups form, there are a few things worth a mention. The first is the formula behind the Groups hotspot:
tempgroup:=@PickList([Custom]:[Single];@Subset(@DbName;1):"Names.NSF";"Groups";"Select a Group";"Select the Group name for this definition";1);
NMGroups:= @GetProfileField("NMGROUPS";"NMGroups");
FIELD groupname:=@If(@IsMember(tempgroup;NMGroups);@Do(@Prompt([OK];"Non-Managed Group";"The group you've selected is listed as being not manageable by this application. You must make an alternative selection.");@Return(""));tempgroup);
@All
|
This checks that any groups selected from the Directory are not in the list of non-managed groups. This check is also repeated in the field that allows Group names to be typed in.
The second hotspot in this form is as follows:
FIELD rules:=@PickList([Custom];"":"";"RULESNAME";"Select Rules";"Select all the rules that apply to this group.";1);
@PostedCommand([RefreshHideFormulas]);
@All
|
The RefreshHideFormulas is used to trigger the HideWhen that manages the display of the And/Or selection field for multiple groups. This has the simple formula:
[ Next ]
|
|
-- Advertisement --
Learn Notes and Domino 7 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.
The many included activities and demos will make you a pro! Expert instructor help is a click away. WebSphere courses are also available!
Click here to try a FREE demo course!! |
-- Advertisement --
INSTALL, UPGRADE NOTES CLIENTS WITHOUT VISITING EACH DESKTOP
Use InstallPump to automate your Notes R8 migration. InstallPump enables you to rollout Notes throughout the enterprise without visiting each desktop.
- 100% fully automated Notes upgrades/installs.
- Modify the Replicator Page, Address Book, and Desktop... and much more.
See for yourself. Full evaluation copy available at http://installpump.com.
Download your FREE evaluation copy of InstallPump today. |
Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
|