PDA

View Full Version : possible to load parent/child in a formpanel



crazy44
5 Apr 2010, 11:12 AM
Hi ,

I have OneToOne Relation : husband/wife with this JSON flow :


{"data":{"key":99,"name":"jean","surname":"jean","wife":{"name":"kelly","surname":'jean'},"success":true}

Is it possible to load automatically the 'wife' fields ?

with a Ext.getCmp('myForm').getForm().load({url: ...} I just can load husband data.

Thanks.

8 Apr 2010, 8:59 AM
you need to setup a JsonReader to do that.