Search DominoPower's 11,437 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
PROGRAMMING POWER
Inside mail distribution: the programming project
By Mick Moignard

In "Inside mail distribution: the application," elsewhere in this issue of DominoPower Magazine, Mick Moignard introduced you to his System Managed Groups application by showing you how it looks to the administrator. In this article, you'll get to roll up your sleeves and see what the code looks like. He'll show you exactly how he did it so that you too can keep your groups automatically maintained.

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:


1  ·  2  ·  3  ·  4  ·  Next »
Other articles you might like
Home > Strategies > Email Management (60 articles)
   Using the Notes Client with Gmail
   Using the Notes client with Hotmail (or not)
   Is English-only a viable mail management strategy?
Home > Social Computing > Messaging (10 articles)
   A Sametime plugin for Trillian
   DAMO deep-six: is there a future for Outlook/Domino integration?
   Why I STILL recommend Domino over Exchange
Home > Lotus Technologies > Application Development (48 articles)
   An application for scanning physical mail and distributing it virtually
   How hide-whens in Rich Text can ruin your whole day (and what to do about it)
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login