scheduler.changeEventId problem

Hi.

i’m user of last version dhtmlxScheduler.

var neweventid=“any code”;
scheduler.changeEventId(data.id, neweventid);

this above code is not working and get error message

Error: a is undefined
Source File: localhost/dhtmlx/dhtmlxScheduler … heduler.js
Line: 178

Help me!

Unfortunately issue can’t be reconstructed locally.
If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.

scheduler.attachEvent(“onEventSave”, function(id, data, is_new_event){
var convert = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
var params = “jobplanid=”+data.id;
params = params+"&jobtypeid="+data.combo_select;
params = params+"&startdate="+convert(data.start_date);
params = params+"&enddate="+convert(data.end_date);
params = params+"&jobdescr="+data.text;
var loader = dhtmlxAjax.postSync(“process.php?action=jobscheduleupd”, params);
eventid = loader.xmlDoc.responseText;
if(eventid!=""){
scheduler.changeEventId(data.id, eventid);
}
return true;
})

Please check above code! Attention: changeEventId function is getting that error without using dhtmlxAjax!

To fix the issue try to change the code as

scheduler.changeEventId(data.id, eventid); scheduler._lightbox_id = eventid;

we will update code, to prevent such problems in future.

Okay

Now nice working!
Stanislav! Many thx