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



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



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


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


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.


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")