Results 1 to 4 of 4

Thread: jsonstore not loaded with data

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    119

    Default jsonstore not loaded with data

    I have a jsonstore that loads the data via an url, as a restful get service. However the store doesnt seem to store the data from the json data, even though the service is invoked with data returned. Do you know why?

    I have tried this also:

    this.store.proxy.api.read.url = 'services/folder/getFolder/
    this.store.reload({
    });

    Now, I noticed in Firebug that the code above didn't change the url on the proxy either, which is weird, because similar code has worked before.

    The idea is to use the data in the jsonstore and load it into a form.
    Last edited by spor; 29 Oct 2010 at 5:18 AM. Reason: additional comment regarding firebug testing

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480

    Default

    Well... when calling reload(), is the right url getting called, when looking in FF? Listen to the exception event of the store to see if there's any error.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    119

    Default

    I have resolved setting the new url by creating a new proxy. However, there is still problem loading the json data to the store. The fields and model config are correctly set.

    The service with the specified url is invoked and returned when calling the following,
    PHP Code:
    this.store.reload(); 
    Shouldn't the store also be loaded with the returned data?

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Do NOT create a new proxy, just to change the url.

    A proxy has a setUrl method that you can use, or - if you use an api - use the code you used in your first post.

Similar Threads

  1. How to configure a JsonStore after it's loaded?
    By cwolves in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 20 Oct 2010, 11:37 AM
  2. Function that is ran after data is loaded with Ext.data.store
    By djudjublondin in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 31 Aug 2007, 6:33 AM
  3. How can I access XML data loaded with Ext.data.HttpProxy?
    By metton in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 9 Aug 2007, 11:33 AM

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
  •