IsDocument (NotesViewEntry - JavaScript™)
Read-only. Indicates whether a view entry is a document.
Defined in
NotesViewEntrySyntax
isDocument() : boolean
Legal value | Description |
---|---|
true |
if the entry is a document |
false |
if the entry is not a document |
Examples
This button gets the entries from a categorized view, displaying the first column if the entry is a category and a document item if the entry is a document.var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getFirst();
while (entry != null) {
if (entry.isCategory()) {
requestScope.status += "\n" +
entry.getColumnValues().firstElement().toString();
} else if (entry.isDocument()) {
requestScope.status += "\n\t" +
entry.getDocument().getItemValueString("subject");
}
var tmpentry:NotesViewEntry = nav.getNext(entry);
entry.recycle();
entry = tmpentry;
}