Exceptions |
Post Reply |
Author | |
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
Posted: 08 May 2006 at 7:12am |
Has there been any change in the process of addind exceptions programatically? The way it was being done in the previous version (9.8.2) is not working now on version 10.1.1 Thanks WaaZ |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hmm...
As I can see, neither Recurrence structure nor exceptions were not significantly changed, may be only some small fixes. However, there were a lot of other data related changes like adding resources and schedules concepts. Anyway, a couple simple tests I've tried right now works fine for me. So far, we need more details on your problems to say something. ps: I can suppose only one problem related to recent changes -- now, if you use schedules, you have to set ScheduleID property both for master recurrence event and for exception event as well (the same value of course). -- WBR, Serge |
|
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
|
The moment you were typing the reply.. i found out the difference. if you do a ChangeEvent(masterEvent)... it overrides the exceptions.. This is causing problems whereby i want to change only details of the series.. like the title.. .and when i do a changeEvent.. i lose my exceptions.. There are work arounds.. but expensive in development time and execution time also. In the previous version, it was alright
If you remove the last line, it will work... Thanks WaaZ |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Ok, let me note once more about master events...
Here is a hierarchy: <master event> - contains a recurrence pattern inside itself. <recurrence pattern> - contains exceptions events inside itself <exception events collection> CalendarControl.DataProvider.AddEvent(masterEv); - add master event with empty exceptions collection .... CalendarControl.DataProvider.ChangeEvent(excepEv); - add exception to master event in the storage only. masterEv object is not updated! CalendarControl.DataProvider.ChangeEvent(masterEv); - this master event object has empty exceptions collection. This line kills exceptions in the storage. This works in the same way in all calendar versions. -- WBR, Serge |
|
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
|
But it was different from the previous version (9.8.1, 9.8.2) ChangeEvent(masterEV) was not killing the exceptions in the storage. Now it is.. I manage to change the codes in my program to cater for that though.. it is alright now. |
|
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 |