AddDominoQuery (NotesQueryResultsProcessor - LotusScript)

Executes and adds the output set of documents from a NotesDominoQuery to those included in NotesQueryResultsProcessor instance. All NotesDominoQuery parameters remain in force for the DQL query execution.

Defined in

NotesQueryResultsProcessor

Syntax

Call notesQueryResultsProcessor.AddDominoQuery( NotesDominoQuery Query, String QueryString, String ReferenceName)

Parameters

Query

A created and ready-to-execute NotesDominoQuery class instance. See the documentation for NotesDominoQuery for details on its parameters.

QueryString

String. The Domino Query Language query to be executed. It can include substitution variables and all legal DQL syntax.

ReferenceName

String. A unique name (to the NotesQueryResultsProcessor instance) of the input set of documents. 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 dq As NotesDominoQuery
Set dq = db2.Createdominoquery()
dq.Maxscandocs = 300000
Dim qrp As NotesQueryResultsProcessor
Set qrp = db.Createqueryresultsprocessor()
Dim dc1 As NotesDocumentCollection

‘ Add the Query object as rslts2, provide the query text
‘ The query will be executed as part of this call
Call qrp.Adddominoquery(dq, "@all", "rslts2")