RecurrencePatterns |
Post Reply |
Author | ||
xmastree
Newbie Joined: 08 November 2005 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 17 November 2005 at 4:04pm |
|
Hi, I am creating events with Recurrences, for example I have set the recurrence to daily, this populates then entire calendar as required, I now want to remove all the recurring events. I use the remove recurrence on the event but this does not remove all the recurring events. How do I remove all recurrences, I have checked for recurrencetype = master but all the events still remain. Can you please post code snippet on how to remove All Recurrences in one delete. Cheers in Advance |
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
Hi,
The example below is included with the next release.
-- HTH, Serge |
||
xmastree
Newbie Joined: 08 November 2005 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
|
Hi, Thank you a very helpful example. also I came across removeRecurrence this sets the recurrencetype to 0 and accorsing to the help notes this is now a non recurring event but when I update the event it still belongs to the recurrence series. should it not be a standalone event at this point. as when I delete the series, this modified event which has no recurrence attached is also deleted can you help explain why the calendar still thinks it is part of a recurrence Cheers in Advance |
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
Hi,
The property CalendarRecurrencePattern.MasterEvent returns a new object each time when called. CalendarEvent.RecurrencePattern also returns new object each time for non-master event. For master event it returns the same internally associated pattern object. So, the following code will take no effect:
The example below should work correctly:
-- WBR, Serge |
||
xmastree
Newbie Joined: 08 November 2005 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
|
Hi, Thanks for the code Cheers |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |