I have a table `order` which is having a column `client`(the id) So this column should be filled by a default value from $_SESSION['client'] but without been visible in grid or add/edit dialog.
I've tried something like below but is not working.
$col = array();
$col["name"] = "client";
$col["hidden"] = true;
$col["editable"] = false;
$col["search"] = false;
$col["default"] = $_SESSION['client'];
$cols = $col;
First I was thinking on adding read_only attribute but this means that the value will be shown.
Now I'm thinking to write a novel trough on_insert/on_update creating the function but I want something easy and quick (if is possible off course!)
Thanks in advance.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?