1. #1
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    927
    Vote Rating
    48
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default [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.

    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);
        }
    Any thoughts?

    Cheers,
    Westy

  2. #2
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    927
    Vote Rating
    48
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    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 :/

  3. #3
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    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

Similar Threads

  1. [FIXED-597] Filters, group and sorters not encoded
    By omarc in forum Sencha Touch 1.x: Bugs
    Replies: 3
    Last Post: 27 Nov 2010, 12:22 AM
  2. column-header-group - filters
    By EnzoM in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 31 Aug 2010, 3:06 AM
  3. [FIXED] sorters config option for Ext.data.Store issue.
    By taka_2 in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 25 Aug 2010, 10:25 PM
  4. Replies: 2
    Last Post: 29 Jun 2010, 2:46 PM
  5. Replies: 1
    Last Post: 10 May 2009, 8:23 AM

Thread Participants: 1