大神求指点下
extjs吧
全部回复
仅看楼主
level 2
xienin888 楼主
var queryForm = new Ext.FormPanel({
labelAlign:"right",
baseCls:'x-plain',
layout:"column",
items:[
new Ext.form.Label({
text:"查询条件:"
}),
new Ext.form.field.ComboBox({
name:quseryCondition,
triggerAction:"all",
selectOnFocus:true,
value:1,
store:new Ext.data.ArrayStore({
fields:["queryL","queryV"],
data:[
['id','id'],
['用户名','username'],
['密码','password']
]
}),
typeAhead:true,
displayField:"queryL",
hiddenName:"quseryCondition",
valueField:"queryV",
queryMode:'local',
}),
new Ext.form.Label({
text:"查询值:"
}),
new Ext.form.TextField({
id:"queryValue",
name:"queryValue"
})
]
});
---------------------------------------------------------------------------------------------
tbar:['-',queryForm,{
text:"查询",
handler:function(){
alert(Ext.getCmp('quseryCondition'));
alert(Ext.get("queryValue"));
store.load({
params:{
start:0,limit:10,
quseryCondition:Ext.get("quseryCondition"),
queryValue:Ext.get("queryValue")
}});
}
得不到quseryCondition,queryValue的值
用get('quseryCondition').dom.value也报错
2014年03月14日 09点03分 1
level 2
xienin888 楼主
queryValue":"[object Object], [object HTMLTableElement], queryValue, [object Object], [object Object]","quseryCondition":"","recordSize":8,"start":0} JSON数据
2014年03月14日 09点03分 2
1