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.
THIS WEEK'S POWERTIP
Working with folders in mail and how to find lost documents
By Mick Moignard

Recently, in another newsletter, I read a piece about finding with documents in a mail file that should be in the inbox folder, but aren't. A solution was offered that, while it more than likely worked, didn't seem to me to be the best way of dealing with the issue. I remembered that I'd worked on this problem before, and on another similar issue that was solved in a similar way.

In Notes, a folder is implemented as a view, with the only difference being that a view has a selection formula that describes which documents should be in the view. A folder doesn't. From the point of view of a document, these two are quite different. It's easy to see if a document is in a view or not by executing the view selection formula against the document. A folder works by maintaining a list of documents that it contains. Documents themselves don't know which folders they are in.

This starts to cause a problem when you start playing about with database designs, particularly if you delete and recreate the Inbox folder in a mail database. If you delete the inbox folder, the list of documents that is in that folder vanishes with the folder. Create a new Inbox, and the new one is empty. There's a whole number of ways that this scenario plays out, but the bottom line is that the inbox is empty. And the owner of the mail file will be muttering dark threats at the Admin people whom he will be blaming for this.

Another version of this scenario is the one where people can't find where they have filed documents in their mail. They can see the document in All Documents -- which is a view -- but they can't find it in any folder, and the Notes mail database doesn't give them any help in finding which folder it is in. More dark mutterings are heard, calling into question the parentage of everyone involved in Notes from Ray Ozzie down to the most junior System Admin person.

Actually both of these scenarios are quite simple to solve. One of my customers has taken one of the solutions I'm about to offer to heart, and has added it as an action to his mail file template. Both solutions hinge around the LotusScript NotesDocument.FolderReferences property, which when properly enabled, allows you to see what folders a document is stored in.

To set this up you need first to copy two hidden views to the design of the database in question -- unless it's a mail database, in which case they are already there. These views are $FolderInfo and $FolderRefInfo. You can copy them from a Notes mail template from any of R5, ND6 or ND6.5 into your target database. Once you've done that, you need to turn on FolderReferences, which seems to be the point where these views are populated.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Strategies > Email Management (60 articles)
   Using the Notes Client with Gmail
   Using the Notes client with Hotmail (or not)
   Is English-only a viable mail management strategy?
Home > Tips & Techniques (102 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   A faster way to repair corrupted server files
Home > Strategies > Document Management (14 articles)
   An application for scanning physical mail and distributing it virtually
   Evaluating your Domino Document Manager (Domino.Doc) transition options
   What to look for in a Domino-based document management solution
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