Get value from details form when using onEventAdd

how i can get the value of start_date,end_date,event_name,details from this event… for the id it already have it own parameter

i’m trying use this “scheduler.attachEvent(“onEventAdded”, function(event_id,event_object)”… i want to save details events into database… i try to echo data from event_object, but dont know how to get those values…

You can use getEvent to get details
docs.dhtmlx.com/scheduler/api__s … event.html

var start = scheduler.getEvent(id).start_date; //similar for other fields

Thank you so much… it really help me…

is it possible to store value for start date or end date separate between date and time…,then retrieve it back and display back on the schedule…this is because i want to store it separately and then to retrieve it using sql statement with fields start date,end date,start time,end time…

You can load the date and time separately and combine them in single datetime object on client side. Unfrtunately there is no samples. Will require code like next

scheduler.attachEvent("onEventLoading", function(ev){ ev.start_date = some_code(ev.date, ev.time); })

where some_code - custom code which will create date object from date and time parts ( assuming that you will have in json “date” and “time” values )