markAllUnread (NotesViewNavigator - JavaScript)

Marks all of the documents in a view navigator as unread.

Defined in

NotesViewNavigator

Syntax

markAllUnread() : void

markAllUnread(username:string) : void

Parameter Description
username If present, the method marks all of the documents in the navigator as unread on behalf of the given name. If omitted, the method marks all of the documents in the navigator as unread on behalf of the current user ID.

Usage

If the database does not track unread marks, all documents are considered read, and this method has no effect.

Examples

This button marks all documents in a view as unread.
var nav:NotesViewNavigator = database.getView("main").createViewNav();
nav.markAllUnread();