Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Changing ressources
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing ressources

 Post Reply Post Reply
Author
Message
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: Changing ressources
    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
Back to Top
cybeh View Drop Down
Groupie
Groupie
Avatar

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2007 at 8:20pm
Looking for this solution too. :)
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cybeh View Drop Down
Groupie
Groupie
Avatar

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2007 at 1:10pm
I requested technical support from codejock but still no reply yet.
Back to Top
Rod001 View Drop Down
Newbie
Newbie


Joined: 29 September 2006
Location: United States
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rod001 Quote  Post ReplyReply Direct Link To This Post Posted: 04 October 2007 at 1:51pm
Has this question been resolved
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.250 seconds.