Programmatically create Repeating Calendar Appts (Bruce Stapely?)

As part of an application I am developing I need to be able to create Calendar appointments programatically in LotusScript. Single non-repeating appointments are fine but I am having real problems with repeating appointments.

My method for creating the repeats was to start by manually creating a Repeating appointment and then look at the two documents that get created. The first is a parent document. The second is a response to this parent . This response doc is the actual document that appears in the calendar because it contains the CalendarDateTime item (which the parent does not).

I have looked through all the items on these two documents (including all the system $ items) and got my code to re-produce this situation exactly i.e my code creates two docs, one parent, and one response. Both docs contain all the items that the manually created ones do. I am using a doc compare tool to check this and everything is identical in terms of item types and item values.

However, it still doesn’t work 100%. With a manually created entry if you edit it, the invitees to the meeting appear in the embedded Scheduler. When you edit my automated ones, they do not.

Secondly, when I edit one of my documents, and get asked if I want to compose a msg to any invitees, I then get the error msg “no invitees to send notice to”. With a manually created document this works fine.

As I say, I have checked all the fields on the manually created docs and my ones and everything is identical. The SendTo item does not exist (neither does it exist on the manual one). The EnterSend to item is blank (as it is on the manual one). The AltRequiredNames and RequiredAttendees items both contain the names of the invitees (as they do on the manual doc).

And yet even though all the items are the same, they act differently when you open them up and edit them.

I’m looking through the Lotus code to see whats going on but its extremely complicated and hard to follow. Anyone else got this sort of thing working and have any clues for me??

This is a follow on from a previous posting on this subject - Bruce Stapely was kind enough to respond to that msg suggesting that he had done the same thing and got it to work. I got a bit further after that but have now come up again this problem.

Bruce if you see this, could you let me know if you managed to get this fully working - I think you tried something similar?

Thanks for any help you (or anyone) might have.

Richard

Thanks

Richard

Subject: Programmatically create Repeating Calendar Appts (Bruce Stapely?)

http://www-10.lotus.com/ldd/nd6forum.nsf/0/62b2908d58dc91cc8525704d0033b756

Subject: m_beObject.ActionHandler

Thanks Stan but Julian’s code is all about using the Repeat Dates functionality of the mail template. My Repeating dates are all working fine. What’s not working is that when I try and edit my meeting document, I get this error saying “no recipients to send Notice to”. I’ve debugged the code and it appears that within the function m_beobject.ActionHanlder a document gets created (m_beobject.NoticeDocument) that has values in its SendTo item. This doc is then sent to the people who have been invited to the meeting. The code for this ActionHandler routine doesnt seem to be available in the Script Libraries so I cannot debug it to see how this is done.

Manually entered repeat documents do not have a SendTo item (and neither do my programatically created ones). However, when you edit a manual one, this notice document gets created with a SendTo item correctly populated. When you edit my ones, it doesn’t!

I would have thought that the SendTo item on the notice doc would have come from the RequiredAttendees item but the fact that it doesn’t work for my docs (which have this item correctly populated) suggests it doesn’t.

Anyone been here before?

Richard