#dominoforever | Product Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Missing documentation for NotesDominoQuery class

Currently working my way through DQL and QRP topics. Tried to get a catch on NamedResults and was wondering for a couple of days why I couldn't get it to work:

I'm working on a simple query like

Set nQuery = myDb.CreateDominoQuery()

sQuery = "taskNumber >= 10000 AND taskNumber <= 20000

Database in question resides on a server, contains 500k documents and is FT indexed.

Running an explain from my client in debug mode is giving me the expected results:

sExplainResult = nQuery.explain(sQuery)

as well as running a simple execute:

Set docCol = nQuery.execute(sQuery)

If however I try to make use of a NamedResult I receive a runtime error:

Set docCol = nQuery.execute(sQuery, "docset1", True, 48)

Error returned is

"Domino Query execution error: invalid arguments"

If however I run the same code as a server agent, or if I run that code in a local replica of the database from my client, then the code works as expected; on the server console I see a message telling me that the Named Result was created/rewritten successfully.

Similar behaviour I see when trying to use Named Variables.

It looks as if we had the same rule here that we have with NotesQueryResultsProcessor: code cannot run in a remote client.

If it is a problem to make this work remotely then it can't be helped (although I think it would makle sense at least for debugging situations...). But then it MUST be documented properly in online AND offline help!



  • Guest
  • May 9 2022
  • Needs Review
  • Attach files
  • Guest commented
    12 May 11:42am

    This links to the problem, that the designer documentation has a lot of gaps. Especially an updated help database is wanted.