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)

Code referenced in this article is also available from http://www.component-net.com/dp-extras/dp-200109.html.

Capturing folder/view names and information
In order for this process to work, it's necessary to have a complete list of folders and views along with many of their properties. That is the job of the GetFolders agent, which creates one document based on the (ViewInfo) form for each folder and view in the database.

Each (ViewInfo) document contains the following information:

  • Name of the folder/view;
  • Aliases (a multi-value field whose value is blank if there are no aliases);
  • Is it a folder? ("Y" or "N");
  • Is it a calendar-type view or folder? ("Y" or "N");
  • Is it categorized? ("Y" or "N");
  • Is it Hierarchical (i.e., does it show responses in a hierarchy)? ("Y" or "N");
  • Is it private? ("Y" or "N");
  • SpecialContent, the text that will go into the specific content area of the Web page (initially set as blank). This would be what goes into the area shown as item 2 of the sample figure above.

GetFolders, written in LotusScript, is scheduled to run once per day, but it may be manually triggered, if needed. Note that GetFolders will not capture any information about private or public views that are not available to the ID assigned to the agent (if scheduled) or to the ID of the person running the agent manually.

In order to reduce replication traffic, the GetFolders agent creates new (ViewInfo) documents only for new views and folders. Existing documents are modified as necessary, but only when there is a change in the view or folder it represents. GetFolders deletes the appropriate (ViewInfo) documents when the corresponding folders or views are deleted.

The code for GetFolders can be viewed at http://www.component-net.com/dp-extras/dp-200109.html.

Use of the GetFolders agent and the (ViewInfo) form are not limited to Yahoo-like navigation. Use them in a design whenever you need to collect information about the views and folders in a database.

Focusing in on the folders of interest
There will be more folders and views in the database than you will want to present to users. A hidden view called (FolderNavigation) allows you to select specific folders and views and to present them in the desired order--usually alphabetic. The selection formula for the (FolderNavigation) view limits it to documents created with the (ViewInfo) form. Additional criteria in the selection formula allow you to choose the folders and views that are meaningful. In the sample, the selection is limited to folders (i.e., no views) that are not private and for which the first character of the name is not "(". The complete selection formula is:

SELECT Form="(ViewInfo)" & IsPrivate = "N" & IsFolder = "Y" & @Left(Name; 1) != "("


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

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

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


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