View Full Version : [SOLVED] Question about sending extraParams

24 Jan 2008, 5:15 AM
Hello, I'm trying to send some extraParams (from a store) with this:

proxy: new Ext.data.HttpProxy({url: '/users', method: 'POST', extraParams: {'tipo': 4, 'suerte': 'buena'} })
But it doesn't work.

I know about the baseParams, I have tried them and they work. The baseParams get sent with every request, but that code above doesn't send them. Why?

Thanks in advance.

24 Jan 2008, 5:27 AM
extraParams isn't a config option for Ext.data.Connection.request() (http://extjs.com/deploy/dev/docs/?class=Ext.data.Connection&member=request).

What you can do is:

proxy: new Ext.data.HttpProxy(new Ext.data.Connection({
url: '/users',
method: 'POST',
extraParams: {
'tipo': 4,
'suerte': 'buena'

24 Jan 2008, 6:26 AM
Thanks a lot Condor, I will study the subject to try to get a better understanding of ExtJS.