Hello Abu, how i read the primary key in on_insert, on_update, on_after_insert and on_after_update events???
in the function, i have this:
$id = $data["params"]["idcli"];
$nombre = $data["params"]["nombre"];
$nombre have value ("Carlos"), but $id(primary key) do not have any value in any events mencionated at first, WHY? don't care if the primary key is defined as id, or idcli, can't be read!!!!
thanks a lot…
Inside callback, you can print whole $data array for debug.
It will print whole array as error message on grid and you can review the array elements.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?