PDA

View Full Version : Send parameters store in json format



svper
17 Jul 2013, 8:15 AM
I already posted this on stackoverflow, it's pretty urgent.
http://stackoverflow.com/questions/17674265/jsonobject-in-store-autoload (http://stackoverflow.com/questions/17674265/jsonobject-in-store-autoload) )

basicly i want my post pamaters start, limit and page in a json object ... my WCF service can't handle it otherwise

i have already tried:

'beforeload':function (store, options) { console.log('changing store params');
options.params = Ext.encode(options.params);
options.jsonData = options.params;
},
none of this works

skirtle
17 Jul 2013, 8:01 PM
See:

http://skirtlesden.com/articles/custom-proxies

Search for jsonData if you can't be bothered to read it all.

svper
18 Jul 2013, 12:17 AM
Thank you so much!