Search DominoPower's 11,443 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.
HANDS-ON NOTES DEVELOPMENT
Using one template for three different uses
By Chris Brown a.k.a. GreenJellybean

Have you ever wanted to create one template that can support multiple renditions of itself? An example could be a customized Discussion Forum Template that can be used by more than one group. This article explains how to do just that.

Let's say that you're tasked to create a customized Discussion Template for the Quality Assurance Group, with some extra features and a common look and feel. Within the Quality Assurance Group, there are three subgroups: Software, Hardware, and Data Quality Assurance. Each subgroup wants a few fields customized for their particular group, but the overall design of each discussion database should be the same. Your first instinct may be to create a template for each group, so that they each get their customized fields -- but that means maintaining three templates that are basically the same. If you make a design change to one, then all three need to be updated! The design of these templates can quickly get out of sync. A better solution, given this scenario, would be to have one common template for this group.

Naming convention
The first step in this direction is to consider your audience and naming conventions. You know that you'll have to support three separate groups within QA, so you'll need to set up a naming convention so that the application will know which group this database is built for. Let's use "QA" for Quality Assurance and "Disc" for Discussion.

That should cover the topmost level. For each of the subgroups within QA, let's just use the first letter of the group: "S" for Software QA, "H" for Hardware QA, and "D" for Data QA. Given that, when you create new databases off of your customized discussion template, you'll need to follow this naming convention (you'll see why when we look at the code in the next section).

Table A shows how your databases should be named:

Group Database name
Software QA QADiscS.nsf
Hardware QA QADiscH.nsf
Data QA QADiscD.nsf

Let's look at the code
Now let's look at how to set up customized fields based upon the group name. Let's say that each group has its own main contact phone number that needs to be displayed by default on the forms. In the Contact_Phone_Number field, you'll have the following code:


1  ·  2  ·  Next »
Other articles you might like
Home > Lotus Technologies > Notes (84 articles)
   A walk down Memory Lane with Lotus Notes
   An application for scanning physical mail and distributing it virtually
   Managing Notes deployments with Teamstudio Build Manager
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
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
Syncing Notes with Android phones
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
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login