Print Page | Close Window

Creating Recurrence Event Exceptions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=23418
Printed Date: 23 November 2024 at 4:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating Recurrence Event Exceptions
Posted By: Pmosh
Subject: Creating Recurrence Event Exceptions
Date Posted: 21 August 2017 at 3:49pm
I can't seem to figure out how to load custom recurrence exceptions into the calendar. The end result is that I get both the exception and the master event displayed. My code is something like this:

MasterEvent = ole_calendar.DataProvider.CreateEvent()
** Set master event properties **
RecurrencePattern = MasterEvent.CreateRecurrence()
** Set recurrence properties **
ole_calendar.DataProvider.AddEvent(MasterEvent)

ExceptionEvent = ole_calendar.DataProvider.CreateEvent()
ExceptionEvent.MakeAsRException()
** Set exception event properties **
RecurrencePattern.SetException(iOleEvent)
MasterEvent.UpdateRecurrence(RecurrencePattern)
ole_calendar.DataProvider.ChangeEvent(MasterEvent)

Please help. Using version 15.0.2

Pmosh               



Replies:
Posted By: Pmosh
Date Posted: 21 August 2017 at 3:52pm
Please note iOleEvent is actually ExceptionEvent. This is meant to be pseudo code, not actual code.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net