在ExtJs中,想要提交ComboBox的Value,需要设置hiddenName:
1
xtype:
'
combo
'
,
2
fieldLabel:
'
产品品牌
'
,
3
emptyText:
"
--产品品牌--
"
,
4
displayField:
'
Name
'
,
5
valueField:
'
Id
'
,
6
hiddenName:'brand',
7
triggerAction:
'
all
'
,
8
width:
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
xtype:
'
combo
'
,2
fieldLabel:
'
产品品牌
'
,3
emptyText:
"
--产品品牌--
"
,4
displayField:
'
Name
'
,5
valueField:
'
Id
'
,6
hiddenName:'brand',
7
triggerAction:
'
all
'
,8
width:
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




