Please help me to find out end date-time of the last instance of repeat meeting on the postopen event

Hi,

I am using Lotus script to find out end date and time of last instance of repeat meeting. When I click on the Save and Send button of the Lotus Notes, I am successfully able to get end date and time on the querysave event. When I try to open the same repeat meeting from the Calendar (with the Calendar view as Day, Week Or Month), then on the postopen event the same code to find out end date-time for the last instance of repeat meeting is not working. When I select Calendar view as Meetings and try to open the repeat meeting then postopen event triggers twice. In this case on the 2nd postopen event I am successfully getting end date and time values.

Following is the snippet of my code:

Dim iNoOfInstance As Integer

Dim notesEndDateRepeat As NotesDateTime

Dim strDateTime As String

iNoOfInstance = Ubound(Source.Document.RepeatInstanceDates)

Set notesEndDateRepeat = New NotesDateTime(Source.Document.RepeatEndDates(iNoOfInstance))

strDateTime = notesEndDateRepeat.LocalTime

Msgbox strDateTime

Please help me to find out end date-time of the last instance of repeat meeting on the postopen event.

Thanks,

Abhi

Subject: Wrong Field & different doc

Hi Abhi,

as far as I checked it, you are looking at the wrong field, and you have a different document when you save a repeating doc for the 1st time:

Repeating cal entries are docs with responses. If you open or highlight one of these rep.meetings, you have a response doc. This does NOT have your field. Only the parent doc has it (as far as I can see only during creation of the meeting, in the Uidoc).

I think that in the response docs this info is stored in the field , so you can use that one.

But please check before coding, if this is the correct field for all types of repeating entries :wink:

HTH

Uwe

Subject: Almost there

The RepeatInstanceDates item on the parent doc has the original starting time of the last instance. It does not have the current ending time. For that data you need to find the instance in question by matchnig the ApptUNID value and RepeatInstanceDates value to the one you want and then check its EndDateTime item.

Bruce

IBM