Hi,
How to implement multi target field of jqAutocomplete ?
When user choose product, #PRICE column would be filled with default price from products.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
..... $grid->setColProperty("PRODUCTID", array("label"=>"productid", "hidden"=>true )); $grid->setColProperty("PRODUCT", array("label"=>"Obat / Produk","width"=>200,"editable"=>true, "searchoptions"=>array("sopt"=>array('cn', 'nc')))); $grid->setAutocomplete("PRODUCT","#PRODUCTID"," select o.product , o.product, o.productid, o.price from products o where upper(o.product) like '%' || upper( ? ) || '%' order by o.product",array("itemLength"=>50), true, true); $grid->setColProperty("PRICE", array("label"=>"Price","width"=>85,"editable"=>true,"formatter"=>"number", "align"=>"right")); .... |
Thank you
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top