getNoteID (NotesXspDocument - JavaScript™)
Gets the note ID of the current document.
Syntax
getNoteID() : string
Return value | Description |
---|---|
string |
The ID which can be up to 8 characters. |
Usage
The note ID identifies the document within one database. It is not the universal ID which uniquely identifies a document across replicas.The note ID is not established for a
new (unsaved) document and appears as something like NEW_nnn
.
Examples
This button assigns the note ID of the document associated with the current context to a session variable.sessionScope.noteid = document1.getNoteID()
A
button on another page uses the session variable to determine the
target document for an
Open
simple action.return sessionScope.noteid
The
button for the
Open
simple action is visible only
if the note ID is set.sessionScope.noteid != null