NotesViewEntryCollection (JavaScript)

Represents a collection of view entries of type document sorted in view order.

Access

This object represents all or a subset of all the document entries in a view. It does not include entries of type category and total. The following NotesView methods return NotesViewEntryCollection objects: getAllEntries, getAllEntriesByKey, getAllReadEntries, and getAllUnreadEntries. The FTSearch method in NotesViewEntryCollection changes the content of the collection.

A current pointer is maintained for view entry collections. All navigation methods set the current pointer to the retrieved entry. Add and delete methods do not move the current pointer. The current pointer is set to the first entry after FTSearch and removeAll. For remote (IIOP) operations only, the current pointer is set to the first entry after putAllInFolder, removeAllFromFolder, and stampAll.

Automatic updates: avoid

Avoid automatically updating the parent view by explicitly setting IsAutoUpdate to false. Automatic updates degrade performance and may invalidate entries in the collection ("Entry not found in index"). You can update the view as needed with refresh.