hi
I would like to know if it is possible to set a default value in the bulk edit operation for a specific field for example id or name from the user that's edit
1 Answers
You can set in silently in on_update event handler.
e.g.
$e["on_update"] = array("update_data","",true);
$g->set_events($e);
function update_data($data)
{
$g = new jqgrid();
$data["params"]["user_id"] = $_SESSION["uid"];
}
This way, data from session will be updated in sql field user_id.
Your Answer