bulk edit default value

Questionsbulk edit default value
jose alfredo bocanegra asked 3 years ago

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
Abu Ghufran answered 3 years ago

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

4 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?