#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

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 )

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Dec 21 2020
  • Needs review
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    11 Jan 11:33am

    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.

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    23 Dec, 2020 11:09pm

    There were red windows somewhere here)))

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    21 Dec, 2020 04:39pm

    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