Print Page | Close Window

CalendarResourcesManager: SaveCfg and LoadCfg

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=4921
Printed Date: 22 November 2024 at 4:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CalendarResourcesManager: SaveCfg and LoadCfg
Posted By: flauzer
Subject: CalendarResourcesManager: SaveCfg and LoadCfg
Date 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
 
 
 



Replies:
Posted By: sserge
Date 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



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