IsPublicAddressBook (NotesDatabase - JavaScript™)
Read-only. Indicates if a database is a Domino® Directory.
Defined in
NotesDatabaseSyntax
isPublicAddressBook() : boolean | Legal value | Description |
|---|---|
true |
if the database is a Domino® Directory |
false |
if the database is not a Domino® Directory |
Usage
This property is available forNotesDatabase objects
retrieved from getAddressBooks in NotesSession.
For other NotesDatabase objects, this property has
no value and evaluates to false.The database must be open to use this property.
Examples
This button gets the Domino® Directories available to the current session.requestScope.status = "Public address books:";
var books = session.getAddressBooks().iterator();
while (books.hasNext()) {
var book:NotesDatabase = books.next();
book.open();
if (book.isPublicAddressBook()) {
requestScope.status += "\n\t" + book.getTitle();
}
}