AddCollection (NotesQueryResultsProcessor - LotusScript)

Adds a NotesDocumentCollection or NotesViewEntryCollection to the Documents being processed.

Defined in

NotesQueryResultsProcessor

Syntax

Call notesQueryResultsProcessor.AddCollection(Variant Collection, String ReferenceName)

Parameters

Collection

Variant. A NotesDocumentCollection object or a NotesViewEntryCollection object.

ReferenceName

String. A unique name (to the QueryResultsProcessor instance) of the input collection. This name is used in returned entries when the origin of results is desired and in addFormula method calls to override the data used to create sorted column values.

Example

Dim qrp As NotesQueryResultsProcessor
Set qrp = db.Createqueryresultsprocessor()
Dim dc1 As NotesDocumentCollection
Set dc1 = db.Ftsearch("[sales_person] contains Trudi", 10000)
‘ add the collection, name it rslts2
Call qrp.Addcollection(dc1, "rslts1")