在ExtJs中,想要提交ComboBox的Value,需要设置hiddenName:
1
xtype: 'combo',
2
fieldLabel: '产品品牌',
3
emptyText: "--产品品牌--",
4
displayField: 'Name',
5
valueField: 'Id',
6
hiddenName:'brand',
7
triggerAction: 'all',
8
120,
9
editable: false,
10
forceSelection: true,
11
allowBlank: false,
12
store: new Ext.data.JsonStore({
13
url: '/admin/getproductbrands',
14
root: 'ProductBrands',
15
fields: ['Id', 'Name']
16
})
17

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17
