1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
    sajan is on a distinguished road

      0  

    Default Dynamically load my data

    Dynamically load my data


    Hi ,
    I tried to follow a couple of threads but was unable to figure it out.
    I have a list named ProductList
    it has a store ProductsStore. which is a json Store

    But I have many url configs for Product Store.
    I dont know how to set the url field dynamically using a controller.So that
    sometimes url is a.json
    and sometimes it is b.json

    Please help me

    thanks

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    111
    Vote Rating
    1
    sajan is on a distinguished road

      0  

    Default


    I think I solved it
    Code:
     var store = Ext.data.StoreManager.lookup('TransactionStoreCust'),            url = 'a.json';
            store.getProxy().setUrl(url);
            store.load();
    solved it


    I am starting to love Sencha Designer

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,266
    Vote Rating
    121
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for taking the time to post the answer for others to benefit.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1