Changing ressources |
Post Reply |
Author | |
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
Posted: 03 April 2007 at 11:48am |
Hello I have a calendar filled with a lot of events (in memory database) and multiple schedules (e.g. peoples and rooms). To change the set of schedules I reload the calendar with the new setup of resources/schedules and the same collection of events (e.g. only rooms). That works fine - but it is very slow. I thougt it must be possible to delete all resources and create a new set of resources with the events allready saved in the data provider. But I can't figure it out how to retrieve all events and set it to the newly createt resources. Cal.DataProvider.GetAllEventsRaw.Count was always 0.
Can anybody give me a hint (an outline of the needed steps was very welcome)!!!
Thanks
Fabian
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
cybeh
Groupie Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
Post Options
Thanks(0)
|
Looking for this solution too. :)
|
|
Fabian
Senior Member Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
Post Options
Thanks(0)
|
Really no idea?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.3
Platform: Windows 7 (32bit) Language: Visual Basic 6.0 / SP6 |
|
cybeh
Groupie Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
Post Options
Thanks(0)
|
I requested technical support from codejock but still no reply yet.
|
|
Rod001
Newbie Joined: 29 September 2006 Location: United States Status: Offline Points: 25 |
Post Options
Thanks(0)
|
Has this question been resolved
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Sure it is
The actual problem comes from the fact that by default data provider 'lives' in first resource. When this resource is deleted - data provider is closed (all evens are removed). So, as a solution you have to use CalendarResourcesManager. It allows handling of data providers and resources separately. Once you create CalendarResourcesManager and add memory DataProvider there (using empty connection string), a data provider will 'live' in ResourcesManager. You can add events there and so on. Than you can start with creating/deleting resources attached to this data provider. You can create all resources once and than just enable/disable them when you need. See our VB Sample for details. To show all events (single resource mode) - add a resource with empty ScheduleIDs collection. -- 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 |