Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有最后一个问题,是否可以进行网格值查找,例如:
db values =1 -> label = label1(下拉值),我如何定义表格元素以进行自动查找?
$this->addField('tipo_mat');
数组查找 -> 数组(1->'Label1',2->'Label2');
谢谢
我有解决方案
$this->addField('tipo_mat')->calculated(true); function calculate_tipo_mat(){ return " CASE WHEN tipo_mat=1 THEN 'Granito' ELSE 'Marmo' END"; }
谢谢大家