PDA

View Full Version : setting proxy of associated model



dougi
28 May 2012, 11:46 PM
Hi,

i can't find the right way to do it.

i have a model 'application' with an associated model 'version' with an hasMany relationship

How should i set the proxy of my version model to build its url from the url of the proxy of the application model following the syntax:
...applications/{appId}/versions

i though it was automatically set by sencha but apparently not.

Feel free to redirect me i there is an example somewhere.
Thanks for your help.

mitchellsimoens
7 Jun 2012, 12:11 PM
I'm not sure I understand. You should set the proxy config when you create the model definition


Ext.define('MyModelName', {
extend : 'Ext.data.Model',

proxy : {...}
});