FolderReferencesEnabled (NotesDatabase - JavaScript™)
Read-write. Indicates whether this database maintains folder references for documents.
Defined in
NotesDatabaseSyntax
getFolderReferencesEnabled()
: boolean
setFolderReferencesEnabled(enabled:boolean) : void
Legal value | Description |
---|---|
true |
maintains folder references |
false |
(default) does not maintain folder references |
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 NotesDocument.
Examples
This button toggles whether folder references are enabled.try {
if (database.getFolderReferencesEnabled()) {
database.setFolderReferencesEnabled(false);
requestScope.status = "Folder references disabled";
} else {
database.setFolderReferencesEnabled(true);
requestScope.status = "Folder references enabled";
}
} catch(e) {
requestScope.status =
"Make sure your database has ($FolderIno) and ($FolderIno) views"
}