PDA

View Full Version : Usage Store with parameters



DmitryF
27 Jun 2012, 11:59 AM
Hello.

I have a Store: Ext.data.Store,
and parameters: {sex: 1, age: 24}

How I can define this parameters in the store before loading.
And then load store.

carol.ext
27 Jun 2012, 12:19 PM
Take a look at extraParams on the proxy.

DmitryF
27 Jun 2012, 12:44 PM
Ext.getStore('MyStore').getProxy().extraParams = {
sex: 1, age: 24};



Is this the right way to use it?

carol.ext
27 Jun 2012, 1:20 PM
Did it work?

I have used extraParams as part of the proxy config


extraParams: {
name: values.name
},

and later like this :


x.getStore().getProxy().extraParams.name = values.name;

DmitryF
27 Jun 2012, 1:31 PM
Thank you for help! =D>