下拉框中传多值的处理方式:
假设ds传递的模型为{id:111,name:'张三',code:'0088'},设置两个隐藏field:name、code
listeners : {
select : function(combo,records) {
this.up('form').getForm().findField(
'name').setValue(
records[0].get('name'));
this.up('form').getForm().findField(
'code').setValue(
records[0].get('code'));
}
}
同理可通过此方式传递任意多个数值