getNextEntry (NotesViewEntryCollection - JavaScript)

Gets the entry immediately following the current or a specified entry in a view entry collection.

Defined in

NotesViewEntryCollection

Syntax

getNextEntry() : NotesViewEntry

getNextEntry(entry:NotesViewEntry) : NotesViewEntry

Parameter Description
entry Any entry in the view entry collection. Cannot be null.
Return value Description
NotesViewEntry The entry following the current or specified entry. If there is no next entry, returns null.

Examples

This button gets all the documents in a view.
var vec:NotesViewEntryCollection = database.getView("main").getAllEntries();
var entry:NotesViewEntry = vec.getFirstEntry();
while (entry != null) {
	var subject:string = entry.getDocument().getItemValueString("subject");
	requestScope.status += "\n" + subject;
	var tmpentry:NotesViewEntry = vec.getNextEntry(entry);
	entry.recycle();
	entry = tmpentry;
}