Adds to a view entry collection specified documents not already in the collection.
Parameter | Description |
---|---|
noteid | Note ID of a document. |
documents | An object of type NotesDocument, NotesDocumentCollection, NotesViewEntry, or NotesViewEntryCollection. View entries must point to documents. |
On successful completion of this method, the original document collection contains a union of its documents and those specified by the parameter.
if (requestScope.query.isEmpty()) return;
if (requestScope.query2.isEmpty()) return;
if (!database.isFTIndexed()) database.createFTIndex(0, false);
var vec1:NotesViewEntryCollection = database.getView("main").getAllEntries();
var vec2:NotesViewEntryCollection = vec1.cloneCollection();
vec1.FTSearch(requestScope.query);
vec2.FTSearch(requestScope.query2);
vec1.merge(vec2);
if (vec1.getCount() > 0) {
var entry:NotesViewEntry = vec1.getFirstEntry();
while (entry != null) {
requestScope.status += "\n" +
entry.getDocument().getItemValueString("subject");
entry = vec1.getNextEntry(entry);
}
} else {
requestScope.status = "No match";
}