Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member htammen's Avatar
    Join Date
    Jul 2010
    Location
    Germany, Hannover
    Posts
    74
    Vote Rating
    0
    htammen is on a distinguished road

      0  

    Default [CLOSED]Error in Ext.data.Model.load ?

    [CLOSED]Error in Ext.data.Model.load ?


    There seems to be an error in the Ext.data.Model.load method. The --> marked line of the source below throws an exception because operation.getRecords() does not return an error.
    Reason: My backend returned a 404 error because I had an error in URL mapping at server side.
    Because of the exception my failure method where I normally react to such server errors is never called.

    PHP Code:
           load: function(idconfig) {
                
    config Ext.applyIf(config || {}, {
                    
    action'read',
                    
    id    id
                
    });

                var 
    operation  Ext.create('Ext.data.Operation'config),
                    
    callbackFn config.callback,
                    
    successFn  config.success,
                    
    failureFn  config.failure,
                    
    scope      config.scope,
                    
    recordcallback;

                
    callback = function(operation) {
    -->                
    record operation.getRecords()[0];

                    if (
    operation.wasSuccessful()) {
                        if (
    typeof successFn == 'function') {
                            
    successFn.call(scoperecordoperation);
                        }
                    } else {
                        if (
    typeof failureFn == 'function') {
                            
    failureFn.call(scoperecordoperation);
                        }
                    }

                    if (
    typeof callbackFn == 'function') {
                        
    callbackFn.call(scoperecordoperation);
                    }
                };

                
    this.proxy.read(operationcallbackthis);
            }
        }, 

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,170
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This should be fixed in the next release.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. using url to load data I get an error in Extjs-all-debug.js
    By webarnie in forum Ext Designer: Help & Discussion
    Replies: 1
    Last Post: 1 Mar 2011, 2:11 PM
  2. Replies: 2
    Last Post: 15 Nov 2010, 10:47 AM
  3. Can not load data in store. Error: data is not object
    By Jaeger in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 6 Sep 2010, 1:04 AM
  4. Replies: 1
    Last Post: 13 Apr 2010, 11:40 AM
  5. [CLOSED][3.1] Error Yahoo adapter not all plugins load
    By oniram88 in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 4 Feb 2010, 2:35 PM

Thread Participants: 1