dhtmlxconnector:ondberror_event [DHX documentation]

PHP Connector DHTMLX


The event occurs when some DB level error occurs, during data saving operations. It is relates to all operations: Insert, Update and Delete. It can be used to pass error info to the client side.


Parameters handlerFunc:

  • $action - DataAction Object
  • $exception - SQL related exception object


  • Available for Grid, TreeGrid, Tree, Scheduler, DataView, Form


 //adds new xml as a child of default <action> tag which is passed to client side as response
function doOnDBError($action, $exception){