Categories (NotesDatabase - JavaScript)

Read-Write. The categories under which a database appears in the Database Library.

Defined in

NotesDatabase

Syntax

getCategories() : string

setCategories(categories:string) : void

Usage

Multiple categories are separated by a comma or semicolon.

A database retrieved through NotesDbDirectory does not have to be open for this method. Otherwise, the database must be open.

Examples

This default value for an edit box populates it with the current database categories.
var categories = database.getCategories();
if (categories.isEmpty()) {
	categories = "No categories";
}
return categories
The edit box is bound to requestScope.categories. If the user makes a change, the new value becomes the new database categories value.
database.setCategories(requestScope.categories)