This is the tip we all were waiting for. This LotusScript agent represents AddressBook on the Web. It has been tested with Microsoft Internet Explorer 5.5 and Mozilla Firefox 1.0.x.
Please note that DBPath is a Computed For Display field on the form from where you wish to call the Web Address Book. The formula for DBPath field is
Also, please note that screenWidth and screenHeight are variables to be defined in the JavaScript header section, as written below:
(Note: screenWidth and screenHeight are used in openAddressDialogbox().)
Here's the code for the AddressBook:
MEMBER FEEDBACK TO THIS TIP
Excellent tip !!! I've been in need of this tip for a long time. This works beautifully on the web and the feature of selecting names from multiple address books is remarkable. The only thing missing is the ability to select multiple names from address book and I'd love it if you would add that code too. Thanks again !!!
John D.
******************************************
I am missing a description of the "how" and "where" of this tip. Should the shown code be put into the personal address book to enhance its look and/or performance on the Web? I made a few small developments with the V5 and V6.5 Domino Designer, but I am
not a great developer.
Frank B.
******************************************
This code can be appl
To continue reading for free, register below or login
To read more you must become a member of SearchDomino.com
');
// -->

ied to any database. If you put it in names.nsf, it works best because you can reference Domino Addressbook directly from within any database. Your code also would be central to all databases.
This code gives you an address book that is superior to the one you get after looking into the mail template in R5. However, there are techniques there to show an iNotes addressbook prompt. The code given is an agent that should be implemented within the database you prefer.
The JavaScript code should be placed in the JSHeader section of the form. Call your JavaScript from a button or link.
Sunilkumar Vishwakarma, tip author
******************************************
In the agent, for the <select> tag, use the MULTIPLE attribute to allow it to select more than one name. You'll also want to update the agent agtWebNAB for the following JavaScript function:
This should take care of multiple selections in the pop-up window.
Sunilkumar Vishwakarma, tip author
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Sunilkumar Vishwakarma. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our bimonthly tip contest and you could win a prize and a spot in our Hall of Fame.