Print Page | Close Window

Changing ressources

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6791
Printed Date: 23 November 2024 at 12:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing ressources
Posted By: Fabian
Subject: Changing ressources
Date 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



Replies:
Posted By: cybeh
Date Posted: 04 April 2007 at 8:20pm
Looking for this solution too. :)


Posted By: Fabian
Date Posted: 11 April 2007 at 11:04am
Really no idea?
 


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: cybeh
Date Posted: 11 April 2007 at 1:10pm
I requested technical support from codejock but still no reply yet.


Posted By: Rod001
Date Posted: 04 October 2007 at 1:51pm
Has this question been resolved


Posted By: sserge
Date Posted: 07 October 2007 at 4:33pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net