NotesDocumentCollection (JavaScript™)
Represents a collection of documents from a database.
Access
A document collection represents a subset of all the documents in a database. The documents in the subset are determined by the method or property you use to search the database, for example:- getAllDocuments in NotesDatabase
- FTSearch in NotesDatabase
- FTSearchRange in NotesDatabase
- search in NotesDatabase
- getProfileDocCollection in NotesDatabase
- getModifiedDocuments in NotesDatabase
- getAllDocumentsByKey in NotesView
- getResponses in NotesDocument
Usage
NotesDocumentCollection, NotesViewEntryCollection, and NotesViewNavigator objects provide access to documents in a database. Use a NotesDocumentCollection object if:- You want to act on a specific set of documents that meet certain criteria.
- There is no view in the database that contains every document you need to search.
- You do not need to navigate the documents' response hierarchies.
Views are a more efficient means of accessing documents because they are already indexed by the database itself. However, they do not necessarily provide access to the documents that you want. NotesViewEntryCollection and NotesViewNavigator objects provide access to view entries, which contain NotesViewEntry as well as NotesDocument information. NotesViewNavigator provides access to categories and totals as well as documents.