Check then insert to table

QuestionsCheck then insert to table
Samsun asked 6 years ago


How must i do when i show datagrid, then i klick check box on row. If i check the row, then the row insert in other table. Like bulk, but the difference is insert in other table.


4 Answers
varun answered 6 years ago

Didn't get ur question

Abu Ghufran answered 6 years ago

You can do your custom bulk operation after selecting grid checkboxes.
In demo sample, demos/editing/bulk-edit.php, you can define your callback function.

In that callback function, you will get checked IDs of grid, you can write your code to insert in other database table.

Samsun answered 6 years ago

I did, but i don't know how to loop for insert of check's value

Abu Ghufran answered 6 years ago

In bulk-edit.php code, you can see event handler, and selected IDs are passed in $data["id"] as comma separated values.

// event handler to manage Bulk Operations
$e["on_update"] = array("update_data","",true);

function update_data($data)
if ($data["params"]["bulk"] == "send-email")
$selected_ids = $data["id"]; // e.g. the selected values from grid 5,7,14 (where "id" is field name of first col)

Your Answer

17 + 10 =

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 / 5. Vote count:

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

Let us improve this post!