createViewEntryCollection (NotesView - JavaScript)

Creates an empty view entry collection.

Defined in

NotesView

Syntax

createViewEntryCollection() : NotesViewEntryCollection
Return value Description
NotesViewEntryCollection An empty view entry collection.

Examples

This button adds documents to a new view entry collection.
if (requestScope.query.isEmpty()) {
	requestScope.status = "No query";
	return;
}
var vec:NotesViewEntryCollection = view3.createViewEntryCollection();
var dc:NotesDocumentCollection = database.FTSearch(requestScope.query);
var doc:NotesDocument = dc.getFirstDocument();
while (doc != null) {
	vec.addEntry(doc);
	var tmpdoc = dc.getNextDocument(doc);
	doc.recycle();
	doc = tmpdoc;
}
var entry:NotesViewEntry = vec.getFirstEntry();
while (entry != null) {
	requestScope.status += "\n" + entry.getPosition(".") +
		"\t" + entry.getColumnValues().firstElement();
	var tmpentry = vec.getNextEntry(entry);
	entry.recycle();
	entry = tmpentry;
}