Falling Dominos | Let's keep Lotus Notes development relevant

R8 – NotesDocumentCollection: New Methods

I missed the announcement on this one…

The NotesDocumentCollection in R8 now has four new fabulous methods: Merge, Contains, Intersect, Subtract.

  • Merge: Adds to a document collection any documents not already in the collection that are contained in a second collection.
  • Contains: Indicates whether or not a NotesDocumentCollection contains all of the given NotesDocuments or all of the NotesDocuments associated with the given ViewEntries.
  • Intersect: Removes from a document collection any documents not also contained in a second collection.
  • Subtract: Removes from a document collection any documents contained in a second collection.

This is the best part… each method takes a variant called inputNotes as a parameter. The parameter can be a String, NotesDocument, NotesDocumentCollection, NotesViewEntry or NotesViewEntryCollection. Talk about versatility!

These new methods allow the NotesDocumentCollection object to be a “container” tool and not just a “document access” tool. Great job Lotus!

Comment Pages

There are 1 Comments to "R8 – NotesDocumentCollection: New Methods"

  • Erik Brooks says:

    Yes, these promise to be quite awesome… I haven’t gotten around to speed-testing yet, but it’s GOT to be faster than “roll your own” looping algorithms.

 

Essentials