Hi Everyone,
Currently I'm trying to retrieve leave's date from oracle database to insert into Lotus Notes Calendar as All Day Events
The problem i facing is after i insert into my calendar, i can view my
status is On leave in my calendar view, but public cannot see anything.
Until i open my calendar, press save and close, it's can show to public.
May i know what is the problem?
Below is the my coding
Set doc= New NotesDocument(db)
Call doc.ReplaceItemValue("MarkerFlag","Agent test")
Call doc.Replaceitemvalue("Form", "Appointment")
Call doc.ReplaceItemValue("AppointmentType","2")
Call doc.ReplaceItemValue("Subject",subject)
Dim CalendarDate(1) As NotesDateTime
Set CalendarDate(0)=dateLeave
Set CalendarDate(1)=dateLeave
Call doc.ReplaceItemValue("CalendarDateTime",CalendarDate)
Call doc.ReplaceItemValue("StartDate",dateLeave)
Call doc.ReplaceItemValue("StartTime",StartTime1)
Call doc.ReplaceItemValue("EndDate",dateLeave)
Call doc.ReplaceItemValue("EndTime",EndTime1)
Dim nCSE As NotesCSEventOwnerDocument
Set nCSE = New NotesCSEventOwnerDocument(0)
Call nCSE.init(doc)
Call nCSE.UpdateDateTimeItems()
Call doc.Computewithform(False, False)
Call doc.Save(True, False)