getAllReadDocuments (NotesDatabase - JavaScript™)
Creates a document collection of all read documents in the database.
Defined in
NotesDatabaseSyntax
getAllReadDocuments() : NotesDocumentCollection
getAllReadDocuments(userid:string) : NotesDocumentCollection
Parameter | Description |
---|---|
userid |
If present, the method returns read documents on behalf of the given name. If omitted, the method returns read documents on behalf of the current user ID. |
Return value | Description |
---|---|
DocumentCollection |
The new document collection. |
Usage
If the database does not track unread marks, all documents are considered read.Examples
This computed field displays the number of read documents in the current database.return "Read documents: " + database.getAllReadDocuments().getCount();