Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by johny on Dec 08, 2009 14:28
open dhtmlx forum
addevent

I am totally new to scripting.
Its quite easy one to handle, so, I tried.
I am using xml file as source, so, i load events from xml file.
only thing is... i am not able to figure out, where i have to write/call the addevent method?
so, that, i can create a new event and save it into xml file.

i looked the whole documentation, but, could not find it.
Answer posted by Alex (support) on Dec 09, 2009 01:58

Hello,

there is no ready solution to save new events into the xml file. But there are dataProcessor functionality that allows to send changes to the server. And moreover there are server-side connectors for PHP, Java  and .Net that help to fetch and save data to the database easily. For example dhtmlxScheduler/samples/01_initialization_loading/05_loading_mysql.html (sample requires PHP).

Answer posted by I want to write on Dec 17, 2009 01:54

Hi

Thanks for the info, if you guide me, i would like to write an interface for saving events to various file formats, like xml.

I think this is good idea, please let me know.

Answer posted by Alex (support) on Dec 17, 2009 04:45

Hello,

there is getEvents method that can be used to get all events of the scheduler: http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:api_method_dhtmlxscheduler_getevents

You can form xml string and pass it to the server to create the xml file.