Categories | Question details Back To List | ||
problem with start and end date Hello, I'm trying to add an event by adding this code : scheduler.attachEvent("onEventSave",function (){ scheduler.addEvent({ start_date: , end_date: , text: 'texte de test', details: 'je teste ', sy_uuid: '#session.lSY.getUUID()#', categoryid:scheduler.form_blocks["Myselect"].get_value(), is_publicyn:1 }) }); But the problem is that i don't know how to get the start_date and the end_date to complete the collection. Can you help please. Thanks Abderahmen Answer posted by Stanislav (support) on Jan 21, 2010 01:51 Second parameter of onEventSave - hash of data scheduler.attachEvent("onEventSave",function (id,ev){ scheduler.addEvent({ start_date: ev.start_date, end_date: ev.end_date, text: 'texte de test', details: 'je teste ', sy_uuid: '#session.lSY.getUUID()#', categoryid:scheduler.form_blocks["Myselect"].get_value(), is_publicyn:1 }) Answer posted by Abderahmen on Jan 21, 2010 02:00 It's working. Thanks for support |