Results 1 to 3 of 3

Thread: Empty store variable after ajax call

  1. #1

    Default Empty store variable after ajax call

    Dear all,

    I have an instance of the Ext.data.Store class:

    var myStore = Ext.create('Ext.data.Store', {
    model: 'Modello',
    proxy: {
    type: 'ajax',
    url: 'com/database/azienda2.jsp',
    reader: {
    type: 'json',
    root: 'data'
    }
    },
    autoLoad: true
    });

    but this variable seems to be empty. Indeed, store.count() gives 0 as output.
    How this can be possible? I need to loop on each store record to get record name.
    How can I solve this problem?
    Thanks,

    Saverio

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated!

    Thanks again,

    Michele


  3. #3

    Default

    Dear Forum_Adm,

    my problem has been solved already in Community Discussions.
    Thanks anyway!

    Kind regards,
    Saverio

Posting Permissions

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