Good Afternoon, Abu.
I have a little problem with an event in a grid, i can get only the editable fields, and the firt col data, this is the code.
$e[“on_update”] = array(“update_terminal”, null, true);
$term = $data[“Terminal”];
$est = $data[“Establecimiento”];
$bon = $data[“params”][“Bonos”];
$fec = $data[“Fecha”];
global $g;$str = “INSERT INTO journal (Fecha, Terminal,Establecimiento, Descripcion,Notes) VALUES (‘”.date(‘Y-m-d H:i:s’).”‘,’$term’, ‘$est’,’Corregidos Bonos : $bon ‘,’$fec’)”;
I can get The filed Bonos, beceause is the one i edit, ican get the Terminal, beceause is the first field in the grid, but, how is possible to get the others fields of the selected row if they are not editables?
Thank you very much for your support.
Only editable fields are currently posted back to server. You can put debug function to see the posted $data array.
What you can do is to execute a sql query and fetch row data from database using first column (id). e.g.
$rs = $g->get_one(“….. WHERE ID = $id”);
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?