Hello,
I try to create an all day event for multiple days using COM and php.
Creating an all day event for a single day works like a charm.
The problem is the field calendardatetime which needs a list of date/time entries.
I found a VB script which creates an array so I tried this too.
Now the script stucks in a infinite loop and the notes client shuts itself down with out any message. Reopening the db starts a consistency check, but my entries is created and displayed correctly, so it seems lotus notes corrected the corrupted entry.
It looks like the method replaceitemvalue doesn’t work correctly with arrays and doesn’t recognize the end of the array, therefor the infinite loop.
I also tried to create a correct object by using the session method createdaterange. But this doesn’t create the right entries for calendardatetime.
$startdate = “19/03/2007”;
$starttime = “04:00:00”;
$enddate = “21/03/2007”;
$endtime = “20:00:00”;
$daterange = $session->createDateRange();
$dstart = $session->createDateTime($startdate." ".$starttime);
$daterange->StartDateTime = $dstart;
$dend = $session->createDateTime($enddate." ".$starttime);
$daterange->EndDateTime = $dend;
$item = $doc->replaceItemValue(“CalendarDateTime”, $daterange);
Anyone with an idea hwo to solve this problem?
I really would appreciate it.