Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by L Gasc on Sep 25, 2009 06:53
open dhtmlx forum
dhtmlxScheduler

In the sample : dhtmlxScheduler/samples/initialization_loading/05_loading_mysql.html
we add this lignes :

    scheduler.attachEvent("onContextMenu", function (event_id, native_event_object){
    scheduler.getEvent(event_id).text = "new text"; //change data of event
scheduler.updateEvent(event_id); // render updated event
});    

no way to update the database .......
the modification don't work, no dataprocess available, the events.php wasn't lauch ...???
Answer posted by Alex (support) on Sep 25, 2009 07:51

Hello,

you can try to use setUpdated method:

scheduler.attachEvent("onContextMenu", function (event_id, native_event_object){ 
  scheduler.getEvent(event_id).text = "new text"; //change data of event 
  scheduler.updateEvent(event_id); // render updated event 
  dp.setUpdated(event_id,true)
});  

Where dp is dataprocessor object.