Views (NotesDatabase - JavaScript)

Read-only. The views and folders in a database.

Defined in

NotesDatabase

Syntax

getViews() : java.util.Vector

Usage

Each element of the vector is a NotesView object that represents a public view or folder in the database, or a private view or folder owned by the effective ID stored in the database.

The database must be open to use this property.

Examples

This computed field displays the name of the default view or a message that there is none.
var views = database.getViews().iterator();
while (views.hasNext()) {
	var v = views.next();
	if (v.isDefaultView()) {
		return v.getName() + " is the default view."
	}
}
return "There is no default view."