Hello,
We have a scheduler, dataprocessor and datastore connected
after creating a new apportment we got the error: Combo is not defined.
Scheduler.$syncFactory/scheduler.sync/this._sync_events<()
dhx.EventSystem.callEvent()
dhx.DataStore.prototype.changeId()
dhtmlXDataStore/obj[name]/this.changeId()
dataProcessor.prototype.afterUpdateCallback()
dataProcessor.prototype.afterUpdate()
dataProcessor.prototype._sendData/n()
window.dhx4.ajax._call/n.onreadystatechange/<()
Do you have any idea what is wrong?
code:
var data2,scheduler,dp;
function init() {
data2 = new dhtmlXDataStore({
datatype:"json",
scheme:{
$init:function(obj){
if (typeof obj.start_date == "string"){
obj.start_date = scheduler.templates.xml_date(obj.start_date);
obj.end_date = scheduler.templates.xml_date(obj.end_date);
}
}
}
});
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.prevent_cache = true;
scheduler.config.lightbox.sections=[
{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
{name:"location", height:43, type:"textarea", map_to:"details" },
{name:"time", height:72, type:"time", map_to:"auto"}
];
scheduler.config.xml_date="%d/%m/%Y %H:%i:%s";
scheduler.config.first_hour = 4;
scheduler.config.limit_time_select = true;
scheduler.sync(data2);
scheduler.init('scheduler_here',new Date(2014,10,1),"month");
scheduler.setLoadMode("month")
var dp = new dataProcessor("php/planningsavec.php?id="+14517);
dp.init(data2);
}
response of planningsavec.php is:
regards,
Laurens Bol