getDocument (NotesXspViewEntry - JavaScript™)
Gets the document associated with the view entry.
Defined in
NotesXspViewEntry (JavaScript)Syntax
getDocument() : NotesDocument
Return value | Description |
---|---|
NotesDocument |
The document associated with the view entry. |
Usage
Returns null if the view entry is not a document. Returns null if the document is deleted after the NotesXspViewEntry (JavaScript) object is created.Document objects retrieved through NotesXspViewEntry (JavaScript) do not have the following properties set: FTSearchScore, ColumnValues, and ParentView.
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 = rowdata.getDocument();
return doc.getItemValue("subject").elementAt(0);
}
} catch (e) {
return e.toString()
}