getEntry (NotesViewEntryCollection - JavaScript)

Gets a specified entry in a view entry collection.

Defined in

NotesViewEntryCollection

Syntax

getEntry(entry:any) : NotesViewEntry
Parameter Description
entry A NotesViewEntry or NotesDocument object representing the entry to be retrieved. Cannot be null.
Return value Description
ViewEntry The view entry to be retrieved. If the specified entry is not in the collection, returns null.

Usage

This method can be used to get the entry in this collection that corresponds to an entry from another collection or retrieved through other means.

Examples

This button gets the position of the current document in a view.
var doc:NotesDocument = currentDocument.getDocument();
var vec:NotesViewEntryCollection = database.getView("main").getAllEntries();
var entry:NotesViewEntry = vec.getEntry(doc);
requestScope.status =  entry.getPosition(".") + " " + doc.getItemValueString("subject");