Search DominoPower's 11,974 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
Lotus must open source Notes and Domino
It's time for Lotus to double-down on Linux and open source
Back to basics with Notes: what you can do now
Back to basics with Notes: what are the basics?
Back to basics with Notes
Smart Upgrade bug in Domino 8.5.1 (and some work-around tips)
Hands-on with XPages and the Lotus Solutions Catalog
Latest Lotus Headlines
IBM Lotus Notes 8.5.2: Upgrading your Icons from 16x16 to 32x32
IBM killed the Sandbox !
Followup on Cut and Paste problem in 8.5.2
Save us from our users: Doomsday Weekend 3
iNotes 8.5.2 Security Change With XSS
Warning about multiple Traveler installations in your domain
Admins: Modifying, Updating or Fixing your Config
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Introducing the Jones family and their full-family backup challenges
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Hands on debugging a broken Outlook forwarding rule
-- Advertisement --

Navigate the Document 'SharOllaboraGement' Universe
More than 60% of organizations are dealing with 'Content Chaos' -- Out of control Documents and Content.

Unfortunately, over 50% of those will rush into the wrong solution and ultimately fail.

The Document & Content Management Decision Matrix is a free tool for navigating the broad 'Document Sharing, Collaboration and Management' technology universe.

Use it to help you make the right decision based on your organizational preferences and needs.

Tap to download this complementary tool.

-- Advertisement --

Write for DominoPower today!
Share your experience and expertise with other Lotus Notes and Domino users, administrators, and developers. DominoPower Magazine has grown nicely and now has new opportunities for contributing authors and editors.

Write about something you're an expert on and get your name in lights.

For Writers' Guidelines and to discuss topics, contact Staff Editor Joe Dolittle. This is your opportunity to shine in front of your peers, your clients, and Lotus.

Click for more info!

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