IsCategory (NotesViewEntry - JavaScript™)
Read-only. Indicates whether a view entry is a category.
Defined in
NotesViewEntrySyntax
isCategory() : boolean
Legal value | Description |
---|---|
true |
if the entry is a category |
false |
if the entry is not a category |
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;
}