Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    28
    Vote Rating
    0
    Shane F is on a distinguished road

      0  

    Question [FIXED-334] Proxy Event 'exception' Never Firing

    [FIXED-334] Proxy Event 'exception' Never Firing


    I been setting a listener on a JsonStore Proxy, and waiting for it to fire on a known 'failure'.

    Code:
    this.aJsonStore.getProxy().on('exception', this.onException, this);

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    Thanks for the bug report.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    28
    Vote Rating
    0
    Shane F is on a distinguished road

      0  

    Default


    I have looking into this issue myself to find out why this is not firing.

    The data result:
    Code:
    {"success": false, "errorMessage": "Hi there. We failed"}
    It seems that inside the 'doRequest':

    Code:
    /**
         * Abstracts common functionality used by all Reader subclasses. Each subclass is expected to call
         * this function before running its own logic and returning the Ext.data.ResultSet instance. For most
         * Readers additional processing should not be needed.
         * @param {Mixed} data The raw data object
         * @return {Ext.data.ResultSet} A ResultSet object
         */
        readRecords: function(data) {
            /**
             * The raw data object that was last passed to readRecords. Stored for further processing if needed
             * @property rawData
             * @type Mixed
             */
            this.rawData = data;
    
            data = this.getData(data);
    
            var root    = this.getRoot(data),
                total   = root.length,
                success = true,
                value, records;
    
            if (this.totalProperty) {
                value = parseInt(this.getTotal(data), 10);
                if (!isNaN(value)) {
                    total = value;
                }
            }
    
            if (this.successProperty) {
                value = this.getSuccess(data);
                if (value === false || value === 'false') {
                    success = false;
                }
            }
    
            records = this.extractData(root, true);
    
            return new Ext.data.ResultSet({
                total  : total || records.length,
                count  : records.length,
                records: records,
                success: success
            });
        }
    ... 'readRecords' does not have any event checking is failing on "total = root.length,". This is a major problem. Is there a feature upgrade coming on this?

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Posts
    28
    Vote Rating
    0
    Shane F is on a distinguished road

      0  

    Default


    Doing this:
    Code:
                var root = this.getRoot(data) || false,
                total = root.length || 0,
                success = true,
                value, records;
    allows me during the 'read' event to go through the rawData to see the error and error message.

  5. #5
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Thanks for the report - the event was being fired in the wrong scope, making it appear that it was never actually fired. I've fixed this now so this will behave correctly as of the next release.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  6. #6
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Does this bug is related to this ?
    http://www.sencha.com/forum/showthre...475#post518475
    Then if so, do you guys have any solution ? thanks a lot !

    Waiting for the new release is kind of hard : /

    Thanks !

Similar Threads

  1. [FIXED-1248] Radio check event not firing 3.0+
    By aw1zard2 in forum Ext 3.x: Bugs
    Replies: 8
    Last Post: 3 Dec 2010, 10:26 AM
  2. [FIXED][3.0rc3] Menu beforeshow event not firing
    By flylaputa in forum Ext 3.x: Bugs
    Replies: 5
    Last Post: 7 Jul 2009, 11:16 PM

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar