getNoteID (NotesXspViewEntry - JavaScript™)
Gets the note ID of a view entry of type document.
Defined in
NotesXspViewEntry (JavaScript)Syntax
getNoteID() : string
Return value | Description |
---|---|
string |
The note ID of the document. |
Usage
This method returns the empty string for entries of type category and total.Examples
This value script for a Computed Field is embedded in a Data Table control with a Domino® view data source whose collection name isrowdata
. The script gets the value of a document
item.try {
if (rowdata.isDocument()) {
var doc:NotesDocument = database.getDocumentByID(rowdata.getNoteID());
return doc.getItemValue("subject").elementAt(0);
}
} catch (e) {
return e.toString()
}