getAllUnreadEntries (NotesView - JavaScript)

The method returns all entries associated with documents that have not been read.

Defined in

NotesView

Syntax

getAllUnreadEntries(username:string) : NotesViewEntryCollection
Parameter Description
username If present the method returns all unread entries on behalf of the given name. If omitted the method returns all unread entries on behalf of the current user ID.
Return value Description
NotesViewEntryCollection All unread entries. If no entries are unread, the collection is empty and the count is zero. If the database does not track unread marks, all entries are considered read.

Examples

This computed field displays the number of unread entries in a view associated with the page.
return view1.getAllUnreadEntries().getCount().toFixed()