IsDirectoryCatalog (NotesDatabase - JavaScript)

Read-only. Indicates whether a database is a Directory Catalog database, also known as the Light Weight NAB, or the Enterprise Address Book.

Defined in

NotesDatabase

Syntax

isDirectoryCatalog() : boolean
Legal value Description
true if the database is a Directory Catalog
false if the database is not a Directory Catalog

Usage

This property is valid only for a database retrieved through the AddressBooks property of Session, and when the database is explicitly opened. For all other NotesDatabase objects, this property returns false.

The database must be open to use this property.

Examples

This button determines whether address books are directory catalogs.
var books = session.getAddressBooks().iterator();
while (books.hasNext()) {
	var book:NotesDatabase = books.next();
	book.open();
	if (book.isDirectoryCatalog()) {
		requestScope.status += book.getTitle() + " is a directory catalog\n";
	} else {
		requestScope.status += book.getTitle() + " is not a directory catalog\n";
	}
}