dhx.ready(function(){
dhx.ui.fullScreen();
dhx.ui({
view: “scheduler”,
id: “scheduler”
});
dhx.i18n.fullDateFormat = "%Y-%m-%d %H:%i";
var dp = new dhx.DataProcessor({
master:$$('scheduler')
});
dp.action_param ="dhx_editor_status";
dhx.dp($$("scheduler")).config.url = "../agenda/data";
$$('scheduler').$$('dayList').define("firstHour", 7);
$$('scheduler').$$('dayList').define("lastHour", 22);
$$("scheduler").$$('month').show();
$$("scheduler").load(arquivoxml,"scheduler");
$$("scheduler").config.save = "../agenda/data";
});
Using mobile scheduler component, I have an error in the method of saving and editing.
He did not save data.
The callback function is seeking the data correctly, but can not write the data.
public function data () {
$ This-> load-> database ();
$ Connector = new JSONDataConnector ($ this-> db, "PHPCI");
$ Connector-> enable_log ("temp.log");
$ Connector-> render_table ("dist_agenda", "id", "start_date (start_date), end_date (end_date), text (text), observation (details) id_cliente");
}
If you run the data () function returns the check:
[{“Id”: “36”, “start_date”: “03/01/2013 16:00:00”, “end_date”: “01/03/2013 16:30:00”, “text”: "Visit “” details “,” - “,” id_cliente “,” 487 “}, {” id “,” 35 “,” start_date “,” 01/03/2013 15:00:00 “,” end_date “:” 01.03.2013 15:30:00 “,” text “:” Visit “,” details “:” Scheduling Previous: 28 \ / 02 \ / 2013 20:00:00 “,” id_cliente “:” 1484 "} , {“id”: “34”, “start_date”: “03/01/2013 09:00:00”, “end_date”: “01/03/2013 09:30:00”, “text”: "Visit “,” details “:” Scheduling Previous: 28 \ / 02 \ / 2013 21:00:00 - “,” id_cliente “:” 973 “}, {” id “:” 33 “,” start_date “:” 2013 - 03-01 08:00:00 “,” end_date “:” 03/01/2013 08:30:00 “,” text “:” Visit “,” details “: null,” id_cliente “:” 507 "}, {“id”: “32”, “start_date”: “02/28/2013 21:00:00”, “end_date”: “02/28/2013 21:30:00”, “text”: “Visit” , “details”: null, “id_cliente”: “973”}, {“id”: “31”, “start_date”: “28/02/2013 20:00:00”, “end_date”: "2013-02 -28 22:00:00 “,” end_date “:” 02/21/2013 22:30:00 “,” text “:” Visit “,” details “:” Scheduling Previous: 18 \ / 02 \ / 2013 22:00 00 - test “,” id_cliente “,” 725 “}, {” id “,” 29 “,” start_date “,” 02/18/2013 22:00:00 “,” end_date “:” 2013-02 - 18 22:30:00 “,” text “:” Visit “,” details “:” Scheduling Previous: 25 \ / 02 \ / 2013 10:00:00 “,” id_cliente “:” 725 “}, {” id “:” 28 “,” start_date “:” 18/02/2013 20:00:00 “,” end_date “:” 02/18/2013 20:30:00 “,” text “:” Visit “,” details “” Scheduling Previous: 04 \ / 02 \ / 2013 14:20:00 - “,” id_cliente “:” 752 “}, {” id “:” 25 “,” start_date “:” 14 04/02/2013 : 20:00 “,” end_date “:” 02/04/2013 14:50:00 “,” text “:” Visit “,” details “: null,” id_cliente “:” 752 “}, {” id " : “24”, “start_date”: “02/25/2013 10:00:00”, “end_date”: “02/25/2013 10:30:00”, “text”: “Visit”, “details” “Scheduling Previous: 01 \ / 02 \ / 2013 16:00:00”, “id_cliente”: “725”}, {“id”: “23”, “start_date”: "01/02/2013 16:00 : 00 “,” end_date “:” 01/02/2013 16:30:00 “,” text “:” Visit “,” details “: null,” id_cliente “:” 725 “}, {” id “:” 182 “,” start_date “:” 03/28/2013 08:00:00 “,” end_date “:” 28/03/2013 08:30:00 “,” text “:” Visit “,” details “:” - ok “,” id_cliente “:” 1473 “}, {” id “:” 181 “,” start_date “:” 03/28/2013 07:00:00 “,” end_date “:” 07 03/28/2013 : 30:00 “,” text “:” Visit “,” details “:” - ok “,” id_cliente “:” 1476 "}]