Deletes an entry from a view entry collection.
Parameter | Description |
---|---|
entry | The view entry to be deleted. Cannot be null. Must be of type document. |
This method throws an exception if the entry is already deleted.
This method throws an exception if the entry is from another collection.
A deleted NotesViewEntry object is invalid and cannot be used for navigation purposes.
if (requestScope.query.isEmpty()) return;
if (!database.isFTIndexed()) database.createFTIndex(0, false);
var vec:NotesViewEntryCollection = database.getView("main").getAllEntries();
vec.FTSearch(requestScope.query);
if (vec.getCount() > 0) {
var doc:NotesDocument = currentDocument.getDocument();
if (doc != null) var entry:NotesViewEntry = vec.getEntry(doc);
if (vec.contains(entry)) {
vec.deleteEntry(entry);
}
vec.putAllInFolder("searchResults", true);
requestScope.status = "Document(s) put in folder";
} else {
requestScope.status = "No match";
}
deleteEntry method in Java™ ViewEntryCollection class