markAllRead (NotesViewNavigator - JavaScript)

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

Defined in

NotesViewNavigator

Syntax

markAllRead() : void

markAllRead(username:string) : void

Parameter Description
username If present, the method marks all of the documents in the navigator as read on behalf of the given name. If omitted, the method marks all of the documents in the navigator as read 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 unread documents in a view as read.
var v:NotesView = database.getView("main");
var nav:NotesViewNavigator = v.createViewNavFromAllUnread();
nav.markAllRead();