PDA

View Full Version : Can you back a FormPanel with multiple model instances?



buffalo billion
17 Aug 2011, 6:31 AM
Say I've got a Contact model that has fields as follows:


fields: [
'id',
'firstName',
'lastName'
]

And a Household that has fields:


fields: [
'id',
'street',
'phone',
'email'
]

Can I load both of these models into a single FormPanel that has fields for all of these? If not, what would be the preferred method of dealing with forms that have fields from multiple models?