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
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 )
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.
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.
There were red windows somewhere here)))
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