CalendarResourcesManager: SaveCfg and LoadCfg |
Post Reply |
Author | |
flauzer
Senior Member Joined: 30 December 2003 Location: Italy Status: Offline Points: 108 |
Post Options
Thanks(0)
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
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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 |
|
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 |