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.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!