After upgrade from 1.5.0 to 1.5.2, the get_dropdown_values in grid filter doesn't work, but it work correctly in the edit dialog box.
These 3 lines will make dropdown in search autofilter.
$client_lookup = $g->get_dropdown_values("select distinct client_id as k, name as v from clients");
$col["stype"] = "select";
$col["searchoptions"] = array("value" => ":;".$client_lookup);
Refer demos/search/autofilter.php for working demo.
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!