Lost events |
Post Reply |
Author | |
WaaZ
Senior Member Joined: 31 January 2006 Location: United Kingdom Status: Offline Points: 103 |
Post Options
Thanks(0)
Posted: 19 March 2006 at 10:31am |
Hi, I added some events in the calendar. The events are recurrent Events. At times, I try to get a reference to the object using the ID, especially when I am not looking at the event, dataprovider.getEvent(int id) returns null, meaning that the event does not exist, event if it does exist. Is it possible that the Id of the master event changes or that the Dataprovider returns null when I pass the masterID? Is it also possible that the ID change when i change view? Thnks WaaZ |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Please note that event ID can be changed by the data provider only when you add event to the data provider (using AddEvent method). After event is added its ID becomes permanent. If you need to remember event ID, you can do that after AddEvent call.
Note also that ocurrence has a temporary event ID because this is not a persistent object. The ocurrence event object is generated every time when calendar call GetDayEvents method of data provider and each time the same ocurrence will have different IDs. That's because GetEvent(id) returns null for ocurrences (and for exceptions as well). -- WBR, Serge |
|
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 |