I created a master grid order and article as detail grid. I can update and delete article items. But I'm not abled to add a new article. Because order id isn't put in the article add form. I read the demo sample "Master detail" code, but I don't understand where I can put the order.id in article.order_id.
Thanks for your help.
You can use on_insert event and update $_GET["rowid"] which is master grid PK.
$e["on_insert"] = array("add_client", null, true);
$id = intval($_GET["rowid"]);
$data["params"]["client_id"] = $id;
I tried to integrate the on_insert function in my own framework, no way :'(
Ok, it's working with my framework (object). But it's not really good to do it in my way. I added the on insert function in global area outside the object. :'(
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!
Thanks for your feedback!