skip (NotesViewNavigator - JavaScript)

Skips a specified number of entries.

Defined in

NotesViewNavigator

Syntax

skip(increment:int) : int
Parameter Description
increment The number of entries to skip where 1 means the next entry. Must be a positive integer. If this value exceeds the number of entries remaining, the method skips to the last entry.
Return value Description
int The actual number of entries skipped.

Examples

This button gets the first and every eighth entry in a view.
var nav:NotesViewNavigator = database.getView("main").createViewNav();
var n:int = 0;
if (nav.gotoFirst()) {
	do {
		var entry:NotesViewEntry = nav.getCurrent();
		requestScope.status += "\n" + 
			entry.getPosition(".") + "\t" +
			entry.getColumnValues().firstElement();
	} while (nav.skip(8) == 8)
}