1. #1
    Sencha User bozzoz's Avatar
    Join Date
    Apr 2010
    Location
    Tortoreto Lido (TE) Italy
    Posts
    58
    Vote Rating
    0
    bozzoz is on a distinguished road

      0  

    Default store remote filter callback

    store remote filter callback


    Hello,
    I've some stores with remoteFilter properties set to true. When I call the method filter() the stores add filters and load the remotely data. How can I add a callback function to the filter() method?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can add a load listener
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User bozzoz's Avatar
    Join Date
    Apr 2010
    Location
    Tortoreto Lido (TE) Italy
    Posts
    58
    Vote Rating
    0
    bozzoz is on a distinguished road

      0  

    Default


    Ok but the load event dosen't return the operation object. Where I can find the error message?

  4. #4
    Sencha User Legolas's Avatar
    Join Date
    Apr 2010
    Location
    Brazil/MG
    Posts
    58
    Vote Rating
    3
    Legolas is on a distinguished road

      0  

    Default


    Hello bozzoz,

    If your error message is included in the response object, you can rescue the returned object through the property "rawData" of class Ext.data.reader.Json. For example:
    Code:
    ,listeners: {
        load: function (store, records, successfull) {
            var json = store.proxy.reader.rawData;
    
    
            console.log(json);
        }
    }
    I am sorry my english, I am learning yet
    Portuguese blog: http://wessdevel.blogspot.com.br/
    Twitter: @wlegolas

  5. #5
    Sencha User bozzoz's Avatar
    Join Date
    Apr 2010
    Location
    Tortoreto Lido (TE) Italy
    Posts
    58
    Vote Rating
    0
    bozzoz is on a distinguished road

      0  

    Default


    Quote Originally Posted by Legolas View Post
    Hello bozzoz,

    If your error message is included in the response object, you can rescue the returned object through the property "rawData" of class Ext.data.reader.Json. For example:
    Code:
    ,listeners: {
        load: function (store, records, successfull) {
            var json = store.proxy.reader.rawData;
    
    
            console.log(json);
        }
    }
    Thank you Legolas, it is just what I want!

  6. #6
    Sencha User Legolas's Avatar
    Join Date
    Apr 2010
    Location
    Brazil/MG
    Posts
    58
    Vote Rating
    3
    Legolas is on a distinguished road

      0  

    Default


    Quote Originally Posted by bozzoz View Post
    Thank you Legolas, it is just what I want!
    You're welcome
    I am sorry my english, I am learning yet
    Portuguese blog: http://wessdevel.blogspot.com.br/
    Twitter: @wlegolas

Thread Participants: 2