1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default Dynamic set the url proxy of a DataStore

    Dynamic set the url proxy of a DataStore


    Is it possible to dynamic change the proxy url config of a DataStore?

    Code:
     var peopleStore = new Ext.data.Store({
               model    :  'peopleModel',
               autoLoad : true,
               proxy    : {
                   type   : 'ajax',
                   url    : 'php/people.php?username=test&distance=100',
                   reader : {
                       type : 'json',
                       root : 'people'
                   }
               }
            });
    this for example is the initial setup of the Datastore, i want to change the url to pass another distance for example and update the datastore

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Posts
    303
    Vote Rating
    3
    steve1964 is on a distinguished road

      0  

    Default Solved!

    Solved!


    Sorry, i solved...

    Code:
    store.proxy.url = 'foo';

Similar Threads

  1. Datastores is it url or is it proxy?
    By Elijah in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 19 Jan 2011, 3:51 PM
  2. Proxy dynamic url
    By g13013 in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 16 Jun 2009, 2:31 AM
  3. DataStore Proxy used in different places
    By mcohnen in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 5 Feb 2008, 3:49 AM