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:
function add_client($data)
{
$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…
2 Answers
Inside callback, you can print whole $data array for debug.
{
phpgrid_error($data);
…
.}
It will print whole array as error message on grid and you can review the array elements.
Your Answer