Skip to Main Content
HCL Domino 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

Status Needs Review
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Jul 19, 2023

"GetDocumentByKey" is not giving search result when key has new line present in it.

The syntax for "GetDocumentByKey" is -->

Set notesDocument = notesView .GetDocumentByKey( keyArray [, exactMatch% ] )

If the value of the "keyArray" parameter has a new line present in it, then the search does not give any results irrespective of the fact that a matching document does exist in the database.

Example -->

Let's say the value of "keyArray" is in the below format (a new line is present in the value):

TestA-TestB

UserA-UserB


In such cases, "GetDocumentByKey" will not fetch any document even though a matching document exists.


The situation remains the same with other available LotusScript methods like "GetAllDocumentsbykey", "GetEntrybykey" and "GetAllEntriesByKey".

The behavior remains the same even if one uses Formula language "@Dblookup".

  • Attach files
  • Guest
    Reply
    |
    Jul 22, 2023

    why would you have a new line in a key?
    what is the use case?

    I don't really see how this is a real problem and I would not see why key lookups should be used that way.