Search DominoPower's 11,441 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.
Reusing the Web address dialog from the R5 mail template (continued)

Take the line:

var selection = FixName(fieldEntryList.options[i].value);

and change it to:

var selection = fieldEntryList.options[i].text;

Then, look for the function stringToSelect(). Take the line:

var div = ","

and change it to:

var div = ";"

Repeat this for the function selectToString().

If you make this change, you must make a slight change to the receiving fields on your calling form. For those fields that are multi-value, change the multi-value separator from comma to semi-colon. Making this change will allow you to use the hidden address book view "($PeopleGroupsFlat)", which lists names in last name-comma-first name order, to look up additional information.

Change the names of the return fields
Because of design constraints, you may not be able to use the standard field names ("SendTo", "CopyTo", etc.) on your form. It's easy to change the field names used by the address dialog form. In the onLoad event of the address dialog form, find the section of code that looks like the following:

if (AddrVersion == "Group") {
openerMembers = window.opener.document.forms[0].Members;
} else if (AddrVersion == "Delegate") {
openerDelegee = window.opener.document.forms[0].Delegee;
} else if (AddrVersion == "") {
openerSendTo = window.opener.document.forms[0].SendTo;
openerCopyTo = window.opener.document.forms[0].CopyTo;
openerBlindCopyTo = window.opener.document.forms[0].BlindCopyTo;
}

Change the field name at the right end of the appropriate statement to match the field name you want to use. For example, to use "NameField" instead of "SendTo", change the statement from:

openerSendTo = window.opener.document.forms[0].SendTo;

to:

openerSendTo = window.opener.document.forms[0].NameField;

Be careful to preserve the exact case of the field name.

Conclusion
With very little effort, you can apply the full functionality of the Notes Web address dialog, making your applications easier to use and more professional looking. Simple modifications can customize the address dialog for the specific needs of your application's design and can improve the look and feel of the application.

Bulk reprints
Bulk reprints of this article (in quantities of 100 or more) are available for a fee from Reprint Services, a ZATZ business partner. Contact them at reprints@zatz.com or by calling 1-800-217-7874.

Glenn Orenstein is president of Glenn Orenstein Consulting, Inc. (at http://www.gorenstein.com), a Boston-area consultancy specializing in Notes and Domino development and support. He can be reached at glenn@gorenstein.com.


« Previous  ·  1  ·  2  ·  3  ·  4
Other articles you might like
Home > Lotus Technologies > Older Releases > R5 (19 articles)
   More archive fun
   A Notes release in Dilbert-land
   Tips for being more productive with Notes R5 mail
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
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
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: 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 --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


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