How can you tell where a document displayed under “All Documents” view is really stored?
Subject: How can you tell where a document displayed under “All Documents” view is really stored?
It is stored in your database. All documents acts like a window to show it.
Subject: How can you tell where a document displayed under “All Documents” view is really stored?
Documents are only stored in the database - there is no sub-structure.
They can be seen in views, based on the Selection Criteria.
They can be seen in folders, which are simply a list of pointers to documents in the database. Thus a document could “be” in two or more folders, even though it only exists once in the database. (And if it’s deleted from one folder, it’s also gone from the other !)
Generally speaking, documents do NOT know which folders they are in. There is an option you can turn on in the design that will tracking the folders that documents are put in, but that won’t track existing documents.
Subject: How can you tell where a document displayed under “All Documents” view is really stored?
in R7 there is a discoverfolders command
Subject: How can you tell where a document displayed under “All Documents” view is really stored?
Was there something in my previous response that offended your sensibilities? Folders and views are not like file system directories – they are merely collections of pointers to documents stored in a database.
Subject: RE: How can you tell where a document displayed under “All Documents” view is really stored?
My sensibilities weren’t offended however my problem is still not resolved.I get the idea (I’m not in a Notes role but I have to deal with the product) that all the documents (emails) are stored in the one database and that the folders are just different views of that database. Not being able to work back or list which folder an email (document)is displayed in is a hinderence to good housekeeping. None of what you posted to my other query helps me with the problem I have.
Hence my different post.
Folders are used to sort emails into catagories for dialy workflow. Some are kept for refernce and others are deleted when no longer needed.
The issue is that the deletd emails aren’t being deleted. How can I ensure that was is deleted from a folder (eg. inbox) actually gets deleted.
Subject: Use FolderReferences property in the NotesDocument class
In a basic notes database, it’s not possible, but you can set up a Database, so that the info is stored in the documents.But for a usable GUI, you have to programm it.
Take a look in the designer help:
FolderReferencesEnabled property
Read-write. Determines which folders, if any, a document is in.
Hinweis This property is new with Release 5.
Defined in
NotesDatabase
Data type
Boolean
Syntax
To get: flag = notesDatabase.FolderReferencesEnabled
To set: notesDatabase.FolderReferencesEnabled = flag
Usage
The database must have the $FolderInfo and $FolderRefInfo hidden views to support folder references. These views can be copied from the mail template. This property does not return view references.
The database must be at the Release 5 file format level or greater.
Maintaining folder references impacts performance.
The database must be open to use this property.
For more information, see the FolderReferences property in the NotesDocument class.
Andreas Hoster