IsNewNote (NotesDocument - JavaScript)

Read-only. Indicates whether a document is new.

Defined in

NotesDocument

Syntax

isNewNote() : boolean
Legal value Description
true if the document was created, but has not been saved
false if the document has been saved

Usage

A document is new if it has not been saved.

Examples

This computed field returns the save status of the current document.
var doc:NotesDocument = currentDocument.getDocument();
return doc.isNewNote() ? "Document not saved yet" : 
	"Document last saved at " + doc.getLastModified().getLocalTime();