Search DominoPower's 11,416 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)

The final step is to adjust the code that you copied from the "Address..." action into your button. If you want the standard version of the dialog (To, Cc, Bcc), no adjustment is necessary; use the code as-is.

In order to obtain any of the other three forms of the dialog, you must edit the code for the onClick action. In the code, there are six lines of code that start with "window.open(...". Each of those lines contains the text "'wAddress?OpenForm'...". Modify the text as follows:

Use "'wAddress?OpenForm&Vers=Delegate'..." for the "Delegate" dialog, use "'wAddress?OpenForm&Vers=Group'..." for the "Group" dialog, and use "'wAddress?OpenForm&Vers=Directory'..." for the "Directory" dialog.

Make the same change on all six lines and be sure to observe the correct capitalization of "Vers" and the three key words. That's all there is to it.

Some simple modifications
With the exception of indicating the format of the dialog you wish to use, you don't have to make changes to any of the design elements copied from the R5.0 Mail template. There are some simple modifications, however, that will make the address dialog more useful.

Fix the delegate format
You may have noticed back in Figure B that the delegate field at the right of the form isn't overly generous in size. It's actually too short to display most names. To remedy the situation, edit the HTML Attributes for the "tmpDelegee" field. Enter the following, including the quotation marks: "SIZE=25".

Modify the list of address books
The list of address books presented by the dialog includes all known address books plus the current database (your application). This may not be appropriate for your application. To remove the current database from the list, locate the field "NABs" and edit the default value. Change if from:

@If(tmpAddrVersion="Directory";"names.nsf";@Subset(@DbName; -1))

to:

"names.nsf"

Also, change the first line of the keyword formula of the same field from:

"myAddr := @DbTitle + "|" + @Subset(@DbName; -1);

And change it to:

myAddr := "";

Change the format of the name that's returned
The standard dialog presents a list of names (last name first), but it returns the email address associated with the selected name. The email address could be the person's name (for internal Notes email users), or an Internet email address for others. For example, "Gable, Clark" could return "Clark Gable/backlot/MGM," "Jordan, Michael" could return "michaelj@air-guy.com,"; "Windsor, Charles" could return "princeofwales@thepalace.co.uk,"; and "Washington, George" could return "George W/ovaloffice/whitehouse."

You can make the dialog return the name in the same format that was chosen instead of the email address. In the address dialog's JS Header, look for the function AddClick(field).


« Previous  ·  1  ·  2  ·  3  ·  4  ·  Next »
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
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
Five trends for 2010
Latest Lotus Headlines
More XPages onclick event weirdness...
Domino 8.5.1 Fix Pack 1 Interim Fix 1 (8.5.1 FP1 IF1) - DAOS Fixes
Domino Designer 8.5 Tip: Where Working Sets Are Stored
Invitation: LTIE Community Meeting - Tuesday, March 23rd 10AM ET
Flex: Using A SharedObject to Remember User Settings
Copy file instead of a link with Quickr connector in Notes
EclipseSource to Participate in Eclipse Foundation's Eclipse Training Series
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Make Mafia Wars an offer it can't refuse
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Removing an Office installation that doesn't want to go away
-- 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 mail and ACL groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- 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