Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resetting RecurrenceState of Modified Items (Read 1520 times)
BudMan
YaBB Newbies
*
Offline


Credidi me felem vidisse

Posts: 45
Joined: Jul 14th, 2007
Resetting RecurrenceState of Modified Items
Mar 8th, 2008 at 10:56pm
Print Post  
I have an Appointment item on my calendar with a Recurrence pattern as follows: Daily, for 3 occurrences. When the user changes the Start/End times of one by dragging the mouse, I want them all to change accordingly. I am using the Calendar's ItemModified event handler to do this with the following code:

appt.Recurrence.Master.StartTime = appt.StartTime
       appt.Recurrence.Master.EndTime = appt.EndTime

This all LOOKS fine. But when I get done, the item I resized has a RecurrenceState of Exception. I want it to revert to just 'regular' Occurrence, like the other items. What is the best way to do this?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Resetting RecurrenceState of Modified Items
Reply #1 - Mar 10th, 2008 at 7:47am
Print Post  
Calling the ClearExceptions method of a Recurrence object should remove all exceptions associated with that recurrence.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint