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 Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Apr 29, 2022

Extend GetItemValue() function

In a large part of my LS code, I always have to use HasItem() to check whether the item really exists. It would be nice if an optional parameter could be passed that returns a default value if the item doesn't exist.

  • Attach files
  • Guest
    Reply
    |
    May 12, 2022

    Nice idea.


    However, if you access a non-existing field in a document, you get an empty string returned. In other words you need HasItem() only, if you want to check, if the field really exists. this way you can simulate NULL-values.

  • Guest
    Reply
    |
    Apr 29, 2022

    Good idea. They could just bring the Javascript type-specific calls (e.g., getItemValueArray, getItemValueString, etc.) to Lotusscript as this is how those calls work (i.e., return a default value).