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 Jun 17, 2025

Fixing Compatibility Between HCL Notes 12 and Notes 9 Regarding the GetDocumentByKey Method

Problem Description:

When I compile an application in Notes 12 that uses the following code:

Dim aKey(1 To 2) As String

aKey(1) = "ABC"

aKey(2) = "123"

Set doc = view.GetDocumentByKey(aKey)

The HCL Notes 12 client works correctly and finds the document, but the Lotus Notes 9 client does not find the document.

Solution:

I found a solution that works correctly in both LN9 and N12:

Set doc = view.GetDocumentByKey(Split(Join(aKey, "|"), "|"))

This approach is interpreted correctly by both versions.

Compile on: HCL Notes 12.0.2 FP4

  • Attach files
      Drop here to upload
    • Guest
      Jul 7, 2025

      Are you using a 64-bit 12.0.2 client? If so, that sounds very similar to a number of 64-bit related bugs having to do with LotusScript arrays. For example, https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0102291 and https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0109692

      If you are using a 64-bit 12.0.2 client, you should consider opening a ticket with HCL about this. Unfortunately, with some of these bugs HCL decided to fix them by requiring you to update your 32-bit client instead of fixing the problem in the 64-bit client compiler. Which means it's possible that the only way it will work on a Notes 9 client is to always compile the LotusScript code on Notes 9 (or any 32-bit client).