I need to send a variable (plataformatechnosite.Utils.usuario) as extraParams and not working. Send an empty string to the server
I use that variable in many other places and it works.
My Code:
Code:
Ext.define('plataformatechnosite.store.Feeds', {
extend: 'Ext.data.Store',
config: {
model: 'plataformatechnosite.model.Feed',
storeId: 'feedsStore',
proxy: {
type: 'jsonp',
url:'http://localhost:8080/proxySimplext/webresources/listadoMedios/recuperar',
callbackKey: 'callback',
extraParams:{
usuario: plataformatechnosite.Utils.usuario
},
reader: {
type: 'json',
rootProperty: 'listaMedios'
},
callback: function(data) {
console.log("callback" + data);
},
afterRequest: function(req, res) {
console.log("Ahoy!", req.operation.response);
}
},
timeout: 3000
}
});
ideas??