Results 1 to 2 of 2

Thread: store has no data after loading

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Belgium
    Posts
    216
    Answers
    4

    Default store has no data after loading

    Hello,

    A weird thing is happening in my code.

    I have defined a store and his model and the proxy to load data from DB.
    Then with my controller I load data into the store like this:.

    Code:
                var loadForms = this.getLoadFormsStore();
                loadForms.load({
                    scope: this,
                    callback: function(records, operation, success){
                        if (success) {
                              console.log(records.length);
                        }
                    }
                });
    Here's the result in my console:



    So I see the proxy has well retrieved data, but my records variable is empty.

    If anyone has an explanation?

    Thanks,

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    It will be helpful to the community to be able to see the store, model (with proxy), and sample data as you see it returned from the server. Can you post a test case demonstrating the issue either inline here or at https://fiddle.sencha.com and we can test along with you?

Posting Permissions

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