Greetings,
I’m using the Scheduler and load it with a custom xml logic, but the save/update operations I’m using the connector/dataprocessor
But when I drag and drop an event an alert shows me an error message
I’m using PHP and the MVC architecture
and this is the code of the scheduler:
[code]
scheduler.config.multi_day = true;
scheduler.config.first_hour = "7";
scheduler.config.last_hour = "24";
scheduler.config.full_day = true;
scheduler.config.details_on_dblclick=true;
scheduler.config.details_on_create=true;
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.cascade_event_display = true;
scheduler.config.cascade_event_count = 4;
scheduler.config.cascade_event_margin = 30;
scheduler.config.show_loading=true;
scheduler.config.details_on_dblclick = true;
scheduler.locale.labels.section_privado = "Evento Privado";
scheduler.config.lightbox.sections=[
{ name:"description", height:50, map_to:"text", type:"textarea", focus:true },
{ name:"recurring", type:"recurring", map_to:"rec_type", button:"recurring" },
{ name:"privado", map_to:"public", type:"checkbox", checked_value: "0", unchecked_value: "1" },
{ name:"time", height:72, type:"time", map_to:"auto"}
];
scheduler.attachEvent(“onBeforeDrag”,block_readonly);
scheduler.attachEvent(“onClick”,block_readonly);
scheduler.init(‘scheduler_here’,null,“week”);
scheduler.setLoadMode(“month”);
scheduler.load(“/calendars/events”);
var dp = new dataProcessor("/calendars/event_dp");
dp.setTransactionMode("POST",true);
dp.init(scheduler);
[/code]
And this is the code for “events_dp”
<?php
include ('/[PATH]/dhtmlxScheduler/codebase/connector/scheduler_connector.php');
$scheduler = new schedulerConnector($res);
$scheduler->render_table("eventos","id","fecha_inicial,fecha_final,nombre,descripcion,public,user_id,clase"); ?>
*$res is set from the controller
[PATH] = path to the archives
I don’t know what I’m doing wrong, no matter the change I make still the same error message
Hope you can help me.
Best Regards