Как я могу дать параметры с ajaxproxy в сенсорном Сенча? в extjs вы делаете это так
Ext.Ajax.request({
url: 'a.php/guest/getListGuests',
params: {poolId: 13},
scope: this,
callback: function(options, success, response) {
});
как я могу сделать это в моем сенсорном коде sencha?
var detailPanel2 = new Ext.Panel({
id:'detailPanel2',
layout:'fit',
items: [{
fullscreen:true,
xtype: 'list',
store: new Ext.data.Store({
model: 'team',
getGroupString : function(record) {
return record.get('name')[0];
},
proxy: new Ext.data.AjaxProxy({
url: 'a.php/guest/getListGuests',
extraParams: {
poolId: 13
},
method:'post',
reader: {
type: 'json',
root: 'data',
totalCount: 'count'
}
}),autoLoad:true
}),
sorters: [{
property: 'name',
direction: 'asc'
}],
itemTpl:'<font size="4" face="Helvetica, Arial" color="black">{name}</font>',
grouped: true,
onItemDisclosure : true,
listeners : {
itemtap : function(record,index,item,e){
if (e.getTarget('.x-list-disclosure')) {
//Ext.Msg.alert(index);
var redirect = 'showpool.php';
window.location = redirect;
}
// else { Ext.Msg.alert("Item clicked!");}
}
}
}]
})
Как видно из приведенного выше кода, я даю параметры, НО это не работает, пока работает в коде extjs.