I have a timeline view.
It show the events correctly.
When i add an event, the event appear in the sheduler but is not saved on database.
Whene i modify an event, it delete the event.
I’ve tested with dhtmlxdataprocessor_debug.js to see what’s appen.
here are the logs :
<?xml version='1.0' ?>
row 1357900313894 marked [inserted,valid]
Initiating data sending for 1357900313894
Initiating data sending for all rows
Sending all data at once
Server url: data/events.php?user=99&equipe=2&editing=true parameters
Server response received details
Action: error SID:1357900313894 TID:1357900313894
row 1357900313894 unmarked [updated,error]
Any idea ?
<action type='error' sid='1357900313894' tid='1357900313894' ></action>
It looks as something bad occurs on server side
If you are using connectors you can enable server side logging and get more detailed error info ( most probably some DB level error )
docs.dhtmlx.com/doku.php?id=dhtm … tor:errors
I’ve tried to activate server-side logging with this line :
$scheduler = new schedulerConnector($res, $dbtype);
But it does nothing.
The temp.log file is not created.
If i create it, nothing appear in it.
the file attached is a demo of the problem.
demo.zip (1.17 MB)
In demo file you are using
but there is no “events.php” file in data directory.
Assuming that you are using event_equipe.php, there is a problem in code, you are using render_sql command (actually it is render_table but with sql code inside, which makes it a bit more worse ) - this is fine for data loading, but CRUD operations will not work for such setup.
Check the next snippet
docs.dhtmlx.com/doku.php?id=dhtm … ral_tables
You can organize code in the same way, use render_sql for data loading and separate render_table with single table and without WHERE instructions for data saving.