(misc) o2valmix o2val(string $view_name, string $field_name) Returns current value of the requested field of a view.
When the view is a db-view it must be defined in the program where o2val() is used and the field must be a field defined in that view.
To get a program-variable value pass "prg§_§var" as view name.
To get an application (session) variable pass "_o2SESSION" as view name.
If returned value is an array, indexed subvalues can be retrieved passing indexes as supplementary parameters. For example if you have:
o2val("view", "field") = array(1 => array("c" => "value"))
you can get "value" directly by calling:
o2val("view", "field", 1, "c")
|