Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - CalendarResourcesManager: SaveCfg and LoadCfg
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CalendarResourcesManager: SaveCfg and LoadCfg

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

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post Topic: CalendarResourcesManager: SaveCfg and LoadCfg
    Posted: 30 August 2006 at 9:09am
I've try to use SaveCfg LoadCfg methods of CalendarResourcesManager.
 
In my sample I've only one Dataprovider (CUSTOM ...for SQL Server)
 
LoadCfg and SaveCfg works, BUT in XML file there is no information about
groups:  for example, if we consider CalendarSample.vbp, Rooms
have no information about Room N1 and Room N2;  this forces us to strange stunts to recover the name.. etc.. and store Schedules in other part....
 
It would not  be more comfortable to have everything in the file? without re-bind the resources and to use twisted methods?
 
 
Is there some error I have done or some method that is escaped me?
 
Thanks in advance
 
 
 
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: 30 August 2006 at 2:32pm
That might sound logical but...

Generally, schedules set {ScheduleID, ScheduleName} is mostly related to the DataProvider data (DB: Events table has a link to schedules via ScheduleID field).

Each data provider may have separate schedules collection (as well as data providers can have a common one).

Built-in data providers (<File> and <DB Access>) load and store schedules on Open, Close or Save methods calls.

We do not add any load/store/edit schedules mechanisms to custom data provider because:
 -- custom data provider already has complex enough logic for calendar event itself;
 -- schedules looks like separate enough part and it can be easily added/implemented;

--
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.172 seconds.