Results 1 to 3 of 3

Thread: Store load exception

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    Kolkata, India
    Posts
    7

    Default Store load exception

    I am getting a store load exception every time I am trying to access it. Can I have some help ?
    Code:
    var subStore = new Ext.data.JsonStore({
                    autoLoad: false,                    
                    reader: new Ext.data.JsonReader({
                        idProperty: 'id',
                        root: 'value',
                        successProperty: 'success'
                    }, newColArr.fields),            
                    proxy: new Ext.data.HttpProxy({
                        url  : this.dataURL,
                        method: 'GET'                    
                    }),
                    listeners:{                    
                        exception: function(proxy, type, action, o, response, args){
                            if (type == "remote") {
                                console.log("Error", response.errors.reason);
                            } else {                            
                                console.log("Warning", " Cannot Load data");
                            }
                        }
                        
                    }
                });
                
                subStore.on('load', function(r, options, success){                    
                    console.log(r);                    
                });
                
                subStore.load({ params : grid.paramObj });

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    What is the exception??? (What error message is appearing?) Have you checked what your server is returning with Firebug?

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Location
    Kolkata, India
    Posts
    7

    Default

    The server is returning the data in the proper format but it is available inside store.reader.jsonData, which I think ( if everything goes OK ) should also be available under store.data.items (currently showing an empty array) . The exception that I am getting is a console log in firebug saying "Warning Cannot Load Data" .

Similar Threads

  1. How to display back end exception message when store load fails?
    By neerajnandwana in forum Ext 2.x: Help & Discussion
    Replies: 25
    Last Post: 5 Jan 2011, 2:34 AM
  2. Store.load() Callback Exception Handling
    By t00bs in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 15 Nov 2010, 8:43 PM
  3. GridPanel load exception
    By Steph972 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 23 Oct 2009, 2:31 AM
  4. Store Load Exception ... i don't know why ?!
    By haloween in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 17 May 2009, 6:56 AM
  5. GridCellRenderer causes load exception
    By catacaustic in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 7 May 2009, 6:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •