Does anyone know how to integrate CodeIgniter with DHTMLX and recurring events. The sample only refers to single events. When I include dhtmlxscheduler_recurring.js it causes problems. How can I add the additional recurring fields and CI functions so that it works?
Adding recurring.js on the client side must not change anything in server side handling.
Just be sure that you have added the necessary fields to the database, and names of fields into the render command
Thanks. I added the extra fields to the event table and everything is working.
But I still have problems with dhtmlxscheduler_recurring.js. When I add a recurring event I can delete the records properly. When I add a non-recurring event and attempt to delete it (from the ligthbox or the trash icon in any view (wk/day/month) the record gets deleted, and underline temporarily crosses out the event time, but the event doesn’t disappear from the screen until I refresh my browser. I looked at both records in the database and the only noticable difference was the event length (and rec_type).
Why would a non-recurring event not vanish from the screen after a delete? If I comment out the dhtmlxscheduler_recurring.js it works fine…
I did notice this in my logs. Not sure why it’s coming up or if it is a problem
-D
ERROR - 2013-09-10 13:06:13 --> Severity: Warning --> Missing argument 1 for DataWrapper::__construct(), called in /var/www/html_vrb2/dhtmlx/connector/base_connector.php on line 474 and defined /var/www/html_vrb2/dhtmlx/connector/db_common.php 494
ERROR - 2013-09-10 13:06:13 --> Severity: Warning --> Missing argument 2 for DataWrapper::__construct(), called in /var/www/html_vrb2/dhtmlx/connector/base_connector.php on line 474 and defined /var/www/html_vrb2/dhtmlx/connector/db_common.php 494
ERROR - 2013-09-10 13:06:13 --> Severity: Notice --> Undefined variable: config /var/www/html_vrb2/dhtmlx/connector/db_common.php 495
ERROR - 2013-09-10 13:06:13 --> Severity: Notice --> Undefined variable: connection /var/www/html_vrb2/dhtmlx/connector/db_common.php 496
It seems to be hanging here
-D
TypeError: f is undefined
…eDayEvent=function(b){return b.rec_type?!0:a.call(this,b)};var b=c.updateEvent;c…
dhtmlx…ring.js (line 23)
I found a solution. I added the ‘render call’ after the delete
-D
models/even_model.php
//deletes an event
function delete($action){
log_message(‘error’,var_export($action,true));
$this->db->delete(“events”, array(“event_id” => $action->get_id()));
$connector->render(); // this leaves the item with a strike-through
$action->success();
}
Then event is not fully removed from the scheduler it may be caused because of bad server side response ( it must be an xml with valid action@sid and action@type values )
In case of connector, if you are using a custom logic, be sure to finalize it with $action->success() which will form the valid response.