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

"root\\" : ("root\\" + @DbColumn(""; ""; "(FolderNavigation)"; 1) + "\\")

The hidden field "Query_String_Decoded" is the standard CGI (Common Gateway Interface) variable field that captures everything after the question mark in the URL and presents it with special characters decoded.

The field "CurrentLocation", hidden and computed-when-composed, is a single-value field. This field extracts the desired folder name from "Query_String_Decoded" and conditions it to prevent errors. The conditioning includes:

  • Ensuring that a blank location is replaced by "root\";
  • That any non-blank location begins with "root\", and
  • That any double slashes ("\\") are replaced by single slashes ("\").

The formula for this field is:

apos := @Length(@Right(@LowerCase(Query_String_Decoded); "location="));
TestLocation := @If(apos = 0; "root\\"; @Right(Query_String_Decoded; apos) + "\\");

REM "make sure the location starts with root\\";
TestRoot := @UpperCase(@Left(TestLocation; 5));
TempLocation := @If(@Left(TestRoot; 5) != "ROOT\\"; "root\\" + TestLocation; TestLocation);

REM "replace double slashes with single slashes";
@ReplaceSubstring(TempLocation; "\\\\"; "\\");

The field FolderName is also hidden and computed-when-composed. This field extracts the precise name of the desired folder. In addition, the name is checked against the values in the field Folders to ensure that the folder actually exists. If the folder name does not exist, the name (dummy) is substituted.

There are several reasons that the named folder might not exist. First, the URL could have been entered incorrectly by hand. Second, the URL could come from an obsolete bookmark and reference a subsequently deleted folder. Third, the reference could be to the root, which doesn't really exist as a physical folder. Finally, it's possible to create a folder hierarchy in which there are no intermediate folders. For example, there could be a folder called Automobiles\Ford Motor Co and another called Automobiles\Ford Motor Co\Recalls\Tires even though Automobiles\Ford Motor Co\Recalls doesn't exist. Any reference to Automobiles\Ford Motor Co\Recalls would have to be handled gracefully.

The formula for FolderName is:

REM "extract the folder name from CurrentLocation";
fn := @LeftBack(@Right(CurrentLocation; "root\\"); "\\");

REM "determine if the name is an actual folder";
testname := "root\\" + @If(fn = ""; ""; fn + "\\");
IsNotAFolder := @IsNotMember(@LowerCase(testname); @LowerCase(Folders));

@If(IsNotAFolder | testname = "root\\"; "(dummy)"; fn)


« 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
Quickr place Superusers
Writing Client-Side Javascript for Re-Use
Lotus Notes R8.5.1: Bug in Contacts "Print Selected View"
New Notes/Domino Technotes published about Chile's extended daylight saving time
SnnT: How to prevent Google from listing your Sametime Server
How to send someone an email that shows your calendar availability
"The collection has become invalid"
>> 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 --

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 ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

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