Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Saving multiple appointments (Read 1759 times)
Christie
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Dec 1st, 2006
Saving multiple appointments
Dec 5th, 2006 at 12:04pm
Print Post  
I struggle to understand how to save appointments with the "SaveTo" method.  My questions are:
Is it possible to save multiple appointments all at once?  For example, lets say you have 20 different appointments in a view.
Does the "SaveToDataSource" method allow one to save to a DB??
I looked at the Tutorials but there is no example of VB.Net code for the "SaveTo" method.  Could someone please show a short example of VB.Net code to accomplish this.

Thanks
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Saving multiple appointments
Reply #1 - Dec 5th, 2006 at 2:29pm
Print Post  
You can use the SaveTo method to save the schedule data to a file on the hard disk or to a stream in a binary or a XML format. Calling this method will save all schedule data, including appointments, contacts, tasks, resources, etc. Loading the data back can be done via the LoadFrom method. Here is a code that illustrates how to save the schedule data in a XML format to a file named 'd:\schedule.xml'. This code also assumes that the variable 'calendar' references an existing Calendar instance.

Code
Select All
calendar.Schedule.SaveTo("d:\schedule.xml", MindFusion.Scheduling.ContentType.Xml) 



As you have suggested, the method SaveToDataSource is used to serialize the schedule data to a database. In order to use it, you have to add a data source to you application, then assign this data source to the DataSource property of the Calendar control. You have to also assign the appropriate data members in the data source to the corresponding DataMember properties in the Calendar. For more information on how to do this, please refer to the DataBinding sample which comes with the installation.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint