Hi all,
I have created a new document in another database. Then moved the document to the ($Alarms) view. But although I have set a PostedDate field, the Drafts view still shows the document !!
Please help.
…
Call item.CopyItemToDocument(doc2, “$AlarmOffset”)
Set item = doc.GetFirstItem("CalendarDateTime")
Call item.CopyItemToDocument(doc2, "CalendarDateTime")
Set item = doc.GetFirstItem("Subject")
Call item.CopyItemToDocument(doc2, "Subject")
Set item = New NotesItem(doc2, "PostedDate", Date$)
'Save and move mini-doc to folder
Call doc2.PutInFolder ("($Alarms)")
Call doc2.Save(True , False , True)
End Forall
'Close original document
Call uidoc.Close
End Sub