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.
How to create Yahoo-like Web folder navigation (continued)

The element (FolderNavigation) has but a single column. This displays the names of the folders (the field "Name") and is sorted in ascending alphabetical order. As we shall see, this view will be used in an @DbLookup to obtain the folder names for the Web.

Presenting the navigation on the Web
Once information about the folders and views is established, and the desired folders are selected, all navigation is performed by a single form called Folder. Every navigation page that's shown on the Web is just a redisplay of the Folder form. Because Folder has a SaveOptions field with a value of 0, no document is ever created from it. A form was used as a design element, instead of a page, because of the need to have computed fields.

Conceptually, the folder and view hierarchy branches out from a single common location, which is referred to as "root" in this design. Thus, a folder named "Automobiles\Ford Motor Co" is referred to as "root\Automobiles\Ford Motor Co\". The final "\" is added to aid in parsing out the folder hierarchy.

As the user moves from one folder to another, the folder's contents are displayed in a computed, embedded view on the Folder form. This leads to a problem with the root; there is no actual folder or view associated with it. To circumvent the problem, a stand-in view, called (dummy) has been added to the design. This view collects no documents--its selection formula is SELECT Form="NoSuchForm". Whenever a user selects the root, the embedded view references (dummy).

Begin the navigation at the root with the following URL:

http://site-name/database-name/Folder?OpenForm

Here "site-name/database-name" is the Internet address for the database (i.e., www.mycompany.com/companyinfo.nsf).

The complete URL syntax for displaying the Folder form is:

http://site-name/database-name/Folder?OpenForm&;CurrentLocation=folder-name

Here "folder-name" is the cascaded, hierarchical name of the desired folder or view, (i.e., "root\Automobiles\Ford+Motor+Co"). The plus symbol is substituted for blanks. The top of the hierarchy, the root, can be referred to as "…CurrentLocation=root", "…CurrentLocation=root\", or "…CurrentLocation="

The layout for the Folder form is shown in Figure B.

FIGURE B


The underlying form layout is simple and clean. Roll over picture for a larger image.

You can easily change the look to suit your own needs. On the Folder form, six hidden fields, two visible fields, and one item of computed text do most of the work.

The hidden field SaveOptions is set to a value of "0", ensuring that the Folder document is never actually saved.

The field Folders is a hidden, computed-when-composed, multi-value field that uses @DbLookup to obtain a list of folder names from the (FolderNavigation) view. The formula prepends each name with "root\" and appends each with "\". To this list, it adds one additional element, "root\" to represent the root of the folder hierarchy. The formula for this field is:


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  7  ·  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 > 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 --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login