First - sorry for a poor ennglish, I’m from Poland.
I’ve gor a PRO version.
Mabye it will be a stupid question, but I search everywhere and can’t find answer for that simple case: I have a dhtmlGrid and lunch load method with a *.php file as a parameter. There I have a SQL query lunch by render_complex_sql. And if I get for example a sql syntax error, my grid keeps silent… no data, no response. How to handle that king of error to show user: Look, it’s SQL Syntax Error: .
here data[0] - ajax request object, you can get status and response text from it
Need to say, that connector do not output the error info to client side ( you really do not wantt to show the actual error messages to the end users ).
If you need to track the connector’s error - you can use enable_log command, that will log all error messages.
Sorry for inconvenience. The dhtmlxError handler will fire only if response from server side is invalid. In your case the error was catched by connector, and connector outputs to the client side the empty but still valid dataset.
To change behavior, add on server side, before render_ command
$grid->enable_log(“some.txt”, true);
It will enable both - logging the errors on server side, and output the log to client side, which will trigger dhtmlxError
I use 3.5 version. Unfortunately still no effect.
Additional, I use compiled version, dhtmlx.js from 3.5 version.
Mabye it’s saome configuration error? I’m using it at IIS 7.0 on Win2k3 and SQLSrv3.0.
Hmmm… Work like this… but it also empty dhtmlxWindow shows… weird. Do you know why?
Other way, I prefer to have a one dhtmlx.js file than seperate directories… byt after compilling not working…
Please, open the ticket at support.dhtmlx.com and provide with the actual complete demo, a new compliled dhtmlx.js containing the fix will be provided to you.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan