IsFolder (NotesView - JavaScript)

Read-only. Indicates whether a NotesView object represents a folder.

Defined in

NotesView

Syntax

isFolder() : boolean
Legal value Description
true if the NotesView object represents a folder
false if the NotesView object represents a view

Examples

This button changes the name of a folder.
var nameOld:string = requestScope.query;
if (nameOld.isEmpty()) {
	requestScope.status = "No folder name specified";
	return;
}
var folder:NotesView = database.getView(nameOld);
if (folder == null) {
	requestScope.status = "No folder by that name";
	return;
}
if (!folder.isFolder()) {
	requestScope.status = "Not a folder";
}
var nameNew:string = requestScope.query2;
if (nameNew.isEmpty()) {
	requestScope.status = "No new name specified";
	return;
}
folder.setName(nameNew);
requestScope.status = "Folder name changed";