removeFromFolder (NotesDocument - JavaScript)

Removes a document from a folder.

Defined in

NotesDocument

Syntax

removeFromFolder(name:string) : void
Parameter Description
name The name of the folder from which to remove the document. The folder may be personal if the program is running on a workstation. If the folder is within another folder, specify a path to it, separating folder names with a backslash. In a JavaScript literal, escape the backslash, for example, Vehicles\\Bikes.

Usage

The method does nothing if the document is not in the folder you specify, or if the folder you specify does not exist.

Examples

This button removes the current document from a user-specified folder.
var doc:NotesDocument = currentDocument.getDocument();
if (doc != null) {
	doc.removeFromFolder(requestScope.folder);
}