Extjs4 grid查询框中的textfield取不到值,求指教解决办法

Extjs4 grid查询框中的textfield取不到值,求指教
view代码:
Ext.define("OA.view.role.List", {
extend: "Ext.grid.Panel",
alias: "widget.rolelist",
store: "role.RoleSto",
dockedItems: [{
xtype: "toolbar",
dock: "top",
layout: "vbox",
padding: 0,
border: 0,
items: [{
xtype: "form",
id: "gridform",
bodyStyle: {
background: "transparent"
},
width: "100%",
height: 40,
padding: 5,
margin: 0,
border: 0,
layout: {
type: "table",
columns: 5
},
defaults: {
labelAlign: "right"
}, 
items: [{
xtype: "textfield",
fieldLabel: "角色名",
name: "paramMap.name",
id: "roleName",
labelAlign: "right"
}, {
xtype: "textfield",
fieldLabel: "角色信息",
name: "paramMap.info",
id: "roleInfo",
labelAlign: "right"
}, /*{
xtype: 'datefield',
        fieldLabel: '开始时间',
        name: 'from_date',
        maxValue: new Date(),
        width: 220
}, {
xtype: 'datefield',
        fieldLabel: '结束时间',
        name: 'end_date',
        maxValue: new Date(),
        width: 220
},*/ {
xtype: "button",
text: "查询",
margin: "0 0 0 10",
id: "rolelistsearch",
iconCls: "Magnifier"
}]
}, {
xtype: "toolbar",
width: "100%",
padding: 0,
margin: 0,
border: "1 1 0 0",
items: [{
xtype: "button",
text: "新增",
id: "addRoleBtn",
iconCls: "Add"
}]
}]
}, {
xtype: "pagingtoolbar",
store: "role.RoleSto",
dock: "bottom",
displayInfo: true
}],
listeners: {
afterrender: function(grid, eOpts) {
grid.getStore().load();
}
},
columns: [{
header: "主键id", dataIndex: "id", hidden: true
}, {
header: "角色名", dataIndex: "name", width: "30%"
}, {
header: "角色信息", dataIndex: "info", width: "69%"
}],
initComponent: function() {
this.callParent(arguments);
}
});


controller代码:
Ext.define("OA.controller.role.RoleCtrl", {
extend: "Ext.app.Controller",
models: ["role.RoleMdl"],
stores: ["role.RoleSto"],
views: ["role.List", "role.Add"],
init: function() {
this.control({
"rolelist button[id=addRoleBtn]": {
click: this.addRole
},
"rolelist button[id=rolelistsearch]": {
click: this.searchRoleList
},
"addrole button[id=saveRoleBtn]": {
click: this.saveRole
}
});
},
addRole: function(btn, e, eOpts) {
var view = Ext.widget("addrole");
},
searchRoleList: function(btn, e, eOpts) {
var grid = Ext.widget("rolelist");
var store = grid.getStore();
//store.params = grid.down("form").getValues();
//alert(grid.down("form").getForm().findField("paramMap.name").getValue());
var form = grid.down("form").getForm();
//alert(form.findField("roleName").getValue());
alert(Ext.getCmp("roleName").getValue());
/*store.load({
params: form.getValues()/*{
start: 0,
limit: perPageSize,
//"paramMap.name": grid.down("form").getForm().findField("paramMap.name").getValue(),
//"paramMap.info": grid.down("form").getForm().findField("paramMap.info").getValue()

}
});*/
},
saveRole: function(btn, e, eOpts) {
var win = btn.up("window");
var form = win.down("form");
if(form.isValid()) {
form.submit({
success: function(form, action) {
if(action.result.success == true) {
Ext.Msg.alert("成功", "新增成功!");
win.close();
} else {
Ext.Msg.alert("失败", "新增失败!");
}
},
failure: function(form, action) {
Ext.Msg.alert("错误", "系统异常,请联系管理员!");
}
});
}
}
});


其中searchRoleList这个方法里面是点击查询之后执行的方法,试了很多种方法,都取不到值,很奇怪,求指教!
------解决方案--------------------
引用:
Quote: 引用:

Quote: 引用:

Quote: 引用:

text配置name:"object.name"


你返回的json数据如
{"object.name":"数据"}