-
14 Mar 2011 7:11 AM #1
[PR3] Sorters, filters and group
[PR3] Sorters, filters and group
Hi,
Am wondering why sorters, filters and group are encoded for passing up to the server in ServerProxy?
The params themselves are passed as an object, implying that the server-side should be able to decode JSON objects. The sorters, filters and group parameters are part of the object sent up, and so when passed as a string cause issue with JSON.Net, for example.
I have changed the following in my (unofficial) DirectProxy, but can't help but think there should be a way of telling the framework to not encode these parameters.
Any thoughts?Code:encodeSorters: function(sorters) { var encodedSorters = this.callParent(arguments); return Ext.decode(encodedSorters); }, encodeFilters: function(filters) { var encodedFilters = this.callParent(arguments); return Ext.decode(encodedFilters); }, encodeGroupers: function(group) { var encodedGroup = this.callParent(arguments); return Ext.decode(encodedGroup); }
Cheers,
Westy
-
16 Mar 2011 9:56 AM #2
Have same issue in PR4, have had to derive from DirectProxy and overload the encode methods to not encode.
Works fine, but seems a bit strange.
Params passed as object, with sub-objects passed as string :/
-
19 Mar 2011 5:21 AM #3
you should post it in Ext4 forum, i don't think they scan this forum too fo bugfixing.
vg Steffen
--------------------------------------
Release Manager of TYPO3 4.5
energlobe.de - german online magazine
Similar Threads
-
[FIXED-597] Filters, group and sorters not encoded
By omarc in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 27 Nov 2010, 12:22 AM -
column-header-group - filters
By EnzoM in forum Ext 3.x: User Extensions and PluginsReplies: 0Last Post: 31 Aug 2010, 3:06 AM -
[FIXED] sorters config option for Ext.data.Store issue.
By taka_2 in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 25 Aug 2010, 10:25 PM -
[FIXED-94] Server Proxy doesn't apply sorters, limit, start to the request Parameters
By crp_spaeth in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 29 Jun 2010, 2:46 PM -
[CLOSED][v3rc1.1] GroupingStore doesn't group if data not in group order
By fzammetti in forum Ext 3.x: BugsReplies: 1Last Post: 10 May 2009, 8:23 AM


Reply With Quote