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

Just below the dspCurrentLocation field is computed text used to display the SpecialContent information specific to the current folder or view. The text is displayed as pass-through HTML, allowing HTML tags to be embedded for achieve formatting. The formula for the computed text is:

REM "get the special content text";
txt := @DbLookup(""; ""; "(FolderNavigation)"; FolderName; "SpecialContent");

REM "check to ensure there was a folder";
@If(@IsError(txt); ""; txt)

The final field on the form is NextLevel, which is visible. It displays the list of folders one level below the current folder in the hierarchy. This field is displayed as pass-through HTML, with each folder an element of a bulleted list. The formula for this field is:

REM "URL for the database.";
url := "/" + @Subset(@DbName; -1) + "/Folder?OpenForm&CurrentLocation=";

REM "replace blanks with plusses, back-slashes with forward slashes and";
REM "double forward-slashes with single forward slashes";
completeURL := @ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(url; " "; "+"); "\\"; "/"); "//";; "/");

REM "Look for folders in the next level down";
FolderNames := @Unique(@Left(@Trim(@Right(Folders; CurrentLocation)); "\\"));

REM "Calculate the paths to those folders";
FolderPaths := CurrentLocation + FolderNames;

REM "turn the list into HTML";
display := "<LI><A HREF=\"" + completeURL + FolderPaths + "\">" + FolderNames + "</A>";

"<FONT FACE=\"ARIAL\">" + @If(FolderNames = ""; "(none)"; display) + "</FONT>"

Below the list of sub-folders is the embedded view. The formula for the embedded selection is simply: FolderName. The entire embedded view is subject to a hide-when formula that displays the view only if there are documents in the selected view/folder. To check this, look at the value of the hidden field Listings, which is a count of the documents in the view/folder. The hide-when formula for the embedded view is:

listings = 0

Below the embedded view is a line of text saying "(None)" that's visible when the embedded view is hidden.

Adding the special content for each folder
Each (ViewInfo) document is created with the field SpecialContent blank. A view called Folders & Views displays all the (ViewInfo) documents, allowing you to edit them and add SpecialContent information. Because the SpecialContent is displayed on the Folder form as pass-through HTML, you can embed HTML tags within the text. A typical entry could look like this:

<H3><Font color="red">Ford Motor Company</font></H3>
Ford Motor Company's Web site states, "At Ford Motor Company, we have a
passion for Better Ideas. Whether pushing the limits of technology and
design, or bringing people together within a community, we work to approach
every challenge with ingenuity and caring."
<H4>Brands Owned by Ford Motor Company</H4>
Ford, Lincoln, Mercury, Mazda, Volvo, Jaguar, Aston Martin, Land Rover


« 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
Syncing Notes with Android phones
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
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: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- 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 --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

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