Hello,
i have a problem with my connector file.
I am using a php-mysql connector for a grid and for a form.
Some values I have to reset to NULL before updating the database.
I am using something like this:
function myUpdate($action){
if ($action->get_value('betrag') == "" || $action->get_value('betrag') == "0.00" || $action->get_value('betrag') == 0) $action->set_value('betrag', NULL);
}
$form = new FormConnector($res);
$form->set_encoding("utf-8");
$form->event->attach("beforeUpdate",myUpdate);
$form->render_table(...);
and this works fine with the form-connector, but has no effect with the grid-connector. I can enter any other value for set_value and it will work, but not with “NULL”.
I am using the files from the latest php-connector (dhtmlxConnector_php_v15_120612.zip).
Please help me.
Thanks!