数据源代码如下:
var accountTypeName = new Ext.data.Store({
proxy:new Ext.data.HttpProxy({url:'getSysPubAccountAction.action'}),
reader: new Ext.data.JsonReader(
{
totalProperty : 'totalCount',
root : 'root'
},[
{name: 'dateCode',type: 'string'},
{name: 'dateLabel',type:'string'}
]
)
});combobox定义如下:
var accountType = new Ext.form.ComboBox({ //
id:'account',
name:'account2',
store:accountTypeName,
hiddenName: 'dateCode',
valuedFiled:'dateCode',
displayField: 'dateLabel',
triggerAction: 'all'
});
我看网上的方法写var an=Ext.get('dateCode').dom.value获取 结果是displayField
请高手指教问题出在哪里
var accountTypeName = new Ext.data.Store({
proxy:new Ext.data.HttpProxy({url:'getSysPubAccountAction.action'}),
reader: new Ext.data.JsonReader(
{
totalProperty : 'totalCount',
root : 'root'
},[
{name: 'dateCode',type: 'string'},
{name: 'dateLabel',type:'string'}
]
)
});combobox定义如下:
var accountType = new Ext.form.ComboBox({ //
id:'account',
name:'account2',
store:accountTypeName,
hiddenName: 'dateCode',
valuedFiled:'dateCode',
displayField: 'dateLabel',
triggerAction: 'all'
});
我看网上的方法写var an=Ext.get('dateCode').dom.value获取 结果是displayField
请高手指教问题出在哪里
值
这样就是valueField的值了