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

Allow add to item array of objects "NotesDateTime"

I want that code below will work correctly and in NotesDocument will store array of dates

Dim ws As New NotesUIWorkspace, uidoc As NotesUIDocument, cdoc As NotesDocument

Set uidoc = ws.Currentdocument

Set cdoc = uidoc.Document

Dim ndt1 As New NotesDateTime( Now )

Dim ndt2 As New NotesDateTime( Now )

Dim ndt3 As New NotesDateTime( Now )

Redim array(2)

Set array(0) = ndt1

Set array(1) = ndt2

Set array(2) = ndt3

Call cdoc.ReplaceItemValue( "date_time", array )

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Feb 16, 2021

      It is commonly used and it works. NotesDateTime is required if you want to have some elements filled in and some empty, if you need to set date only, if you want to set the time zone or hundredths of a second.

    • Guest
      Reply
      |
      Jan 11, 2021

      As per Designer Help / description of NotesDocument.ReplaceItemValue() this should be possible today. I just made a quick test using Designer 11.0.1FP2 -- works as described.

    • Guest
      Reply
      |
      Dec 23, 2020

      There were red windows somewhere here)))

    • Guest
      Reply
      |
      Dec 21, 2020

      Workaround:

      Redim array(2)

      array(0) = Cdat(ndt1.DateOnly & " " & ndt1.TimeOnly )

      array(1) = Cdat(ndt2.DateOnly & " " & ndt2.TimeOnly )

      array(2) = Cdat(ndt3.DateOnly & " " & ndt3.TimeOnly )

      But in this case we lose info about Time Zones