View Full Version : ServerProxy Error Message - TreePanel - without even using a proxy

6 Jan 2012, 5:46 AM
i have got a tree and a tabpanel.
by clicking a item within the tree i add a formpanel, containing an other tree and add this form to the tabpanel. if the tab already exists, i close the existing tab and add the new one.

the first time i open the tab everthing works fine, but when i close the already existing tab and adding the new one, i am getting:

You are using a ServerProxy but have not supplied it with a url.

every time i open the tab, i define the store and the model.
the store.

because the first time everthing works fine, i guess there isnt a problem with the code. i think there is something wrong because i allready defined the store and the model. am i right?

(i am using a tree.data.Store with localdata placed in root : {...})

any idea?

6 Jan 2012, 6:22 AM
i am creating my store, my model and my tree like this:

Ext.define('mymodel',{proxy: [what do i have to write here]???});

Ext.define('mystore',{.....proxy:{type:'localstorage',id: 'just_some_unique_id'}})

tree({store: new mystore()...})

what do i have to write in the proxy of the model?
maybe: new mystore().proxy ???


8 Jan 2012, 6:47 AM