my grid is populated by a database view:
$g->select_command = “SELECT * FROM v_rpt_customer_orders”;
The update table is different from the view:
$g->table = “orders”;
the view is a join of the customers and orders table, and the grid shows some customer info and their orders.
All of the columns are read only except for 1 column, item_status. I want to be able to update the item_status in the orders table. How can this be done?
The update should work if you set different sql and table property. All editable columns are posted on update so if you limit them to the table of orders, it will post PK (first column) and editable columns present. The order table should have PK,item_status in it. You can also have on_update callback function to process manually.
Abu Ghufran - Dev Team
Grid 4 PHP Framework
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?