Email:   
Home
In This Issue
EasyPrint
Click here for the RSS feed's XML code. This is not a browser URL.
Converting Notes Address Books to the Web for Palm devices and pagers (continued)

The other option and the one that ended up in the final solution was to use LotusScript to create an ASCII flat file containing the same information and then save it with a ".csv" extension. This way, the file is ready for importing into the application as soon as it has been created. There is no need to open it up or manipulate it further in any way. Just redirect the user to a Notes document with the CSV file embedded into it and let her download it and import it into her application right away.

A picture of the final solution
I always like to give a big picture of the final solution before going into details about how I did it. In Figure A, you can see a screen shot of how the Address Book Creator application looks on the Web.

FIGURE A

Here's a picture of how the Address Book Creator application looks on the Web Click picture for a larger image.

Get your copy now!

You can download a Notes database containing all of the elements of the solution at http://dan.velasco.com. You can also find all of the LotusScript code listed there as well. I won't go over every element of the solution here, but will instead focus on the key parts that were difficult to figure out so you will have an easier time creating similar applications.

The five hurdles
Here are the five hurdles to creating the application that you should know about:

  • Overcoming the lack of native multiple-item selection on the Web;

  • Using the DocumentContext property of the NotesSession class;

  • Properly signing the agent so it has sufficient rights;

  • Figuring out the correct file structure of the server so you can temporarily place a file there;

  • Deleting the file off of the server once it has been created.

Let's go through these hurdles individually and I'll detail how to overcome them.

Enabling multiple-item selection on the Web
Fortunately for me, this was a fairly easy problem to solve, courtesy of Steve Devoll of Workflow Designs in Dallas (the Top Gun class people). He had given a presentation at Advisor DevCon in October 1998 that outlined the solution to exactly this problem. What you do is to mix a little old-fashioned HTML and Posting commands into your view and view template and then use a "catcher" form to basically get a handle on multiple items by their UNIDs.

You can see how you can put checkboxes onto the page that will calculate to the UNID of the document in Figure B.

FIGURE B

The User Information View on the Web uses HTML to capture the UNID via a checkbox. Click picture for a larger image.

The other essential component for making the multiple-item selection work is the $$ViewTemplate for the User Information Web View. You can see how this form looks in Figure C.

FIGURE C

Here you can see the $$ViewTemplate form for the User Information Web View. Click picture for a larger image.




[ Prev | Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

NO HASSLE PHOTO PRINTING, SHARING, AND STORAGE -- AS LOW AS $2.54 PER MONTH
Discover an easier way to share, print and manage your photos online! Get your own online photo album site for sharing photos, as well as easy-to-use editing tools to make sure your photos look their very best. You can even order high quality prints directly from your album — and have them delivered right to your door!

Best of all, you can also get login-free photo sharing at your personal domain name (if you have one), so your friends and family don't have to hassle with signing up or logging in just to view your pictures. It's the perfect solution for sharing, printing and storing all your favorite images!

And it's only from The Duck! Tap here to get started.

-- Advertisement --

Write for Computing Unplugged!
Share your experience and expertise with other handheld device users. There are new opportunities at ZATZ 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 Steve Niles. This is your opportunity to shine in front of your peers, your clients, and friends.

Click for more info!

Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login