I’ve asked my question on StackOverflow but I figured I might also ask here.
stackoverflow.com/questions/2695 … o-database
Basically, I can’t for the life of me save the data to the database in question. Details in the link. Would be super cool if some one could help me.
(Don’t know if this would be the right place for this thread. If it’s not, some one please move it to the correct place)
Try to remove
myDP.enableDataNames(true);
This line is for custom backend code. Connector expects parameters with default naming scheme, and doesn’t work correctly in case of “data names” mode.
Also, try to update connector files (php files) from here
github.com/dhtmlx/connector-php
Updated the connector, removed the line, still doesn’t work.
I made another project that is exactly the same, but doesn’t use a joined table. That one works fine (enableDataNames is set to true there as well).
Add the one more line
$gridConnector = new GridConnector($conn, "MySQLi");
$gridConnector->enable_log("some.txt");
some.txt will contains some details about data saving process
- check that log does contain record about saving
- check data saving SQL
If server side doesn’t recognize data saving operation or can’t locate data in the incoming request then doublecheck that you are not using any custom settings for dataprocessor on client side. Also, you can try to include connector.js on the page ( can be taken from sources/dhtmlxCommon/connector.js )
Sorry! I completely forgot about this!
The server was down when I was going to do this and I just forgot.
I tried enabling logging but it doesn’t seem to be logging anything.
I created “some.txt” in the same folder as connector.php and it hasn’t changed.
Right now I’m just fiddling with the code, seeing if I can maybe get it to work.
(sorry for double post, couldn’t find the edit button)
I got it to work with some fiddling. I had to enable datanames again and mess with the names in the table a bit, but it works now.
I’m not entirely sure what I did, but the update will be on the github project page soon, if any one wants to take a look.