PDA

View Full Version : Ext.data.Store param POST



BKrisz79
28 May 2009, 5:28 AM
I used this code in Ext 2.2.1:

var storeWSMainCat = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: '_ajax/product_editor.php',
method: 'POST'
}),
baseParams: {action: 'listPEMC'},
autoLoad: true,
reader: new Ext.data.JsonReader ({
root: 'rows',
id: 'wscid',
},[
{name: 'wscid', type:'int'},
{name: 'name'}
])
});

If I call load method to the stroe like this:

Ext.getCmp('cboPEWscid').store.load({params:{parent: record.data.wscid}});

The Firebug with Ext 2.2.1 this call sends the params with POST method, but Ext 3.0 RC1.1 send it with GET method. How can I send the params with POST under Ext 3.0?

dias
28 May 2009, 5:31 AM
It is a BUG in ExtJS3RC1.1, i think it is fixed in SVN.

Paulo Dias

BKrisz79
28 May 2009, 5:48 AM
Thank you the fast answer. So wait a little more until the next release.

naxito
29 May 2009, 5:06 AM
by now you can check this post
http://extjs.com/forum/showthread.php?p=334174#post334174
and
http://www.extjs.com/forum/showthread.php?p=326093#post326093

BKrisz79
2 Jun 2009, 9:54 PM
If it is fixed in the SVN, gow can I download that version?

tryanDLS
3 Jun 2009, 7:09 AM
3.0RC2 was released today.

globalab
24 Jun 2009, 10:12 AM
I'm having the same problem and i'm already tried RC2 and SVN version. Any ideas?

Here is my code:




var fields = [
{ name: 'Name', type: 'string' },
{ name: 'FullName', type: 'string' }
];
var proxy = new Ext.data.HttpProxy({
url: Praedator.Conf.ServiceInvoker,
method: 'POST'
});
var store = new Ext.data.JsonStore({
proxy: proxy,
reader: new Ext.data.JsonReader({
root: 'Result',
successProperty: 'Success',
idProperty: 'FullName'
}, Ext.data.Record.create(fields)),
baseParams: {
Service: 'Praedator.Framework.Core.Domain.Tools.Import.IImporterService',
Method: 'GetEntities'
},
remoteSort: true,
autoLoad: true,
autoSave: false
});


and in the server i'm recieving this


2009-06-24 13:06:08,192 [6] DEBUG HttpAdapter - Request string readed: Service=Praedator.Framework.Core.Domain.Tools.Import.IImporterService&Method=GetEntities&Depth=2

when it's suposed to recieve something like this

2009-06-24 13:06:03,165 [6] DEBUG HttpAdapter - Request string readed: {"Service":"Praedator.Framework.Core.Domain.IEnumDescriptorService","Method":"GetEnumDescriptions","Parameters":null}




Thanks

globalab
25 Jun 2009, 3:56 PM
No news on this?


Can somebody help please?

Thanks