-
Answered: form.panel loadRecord problem
Answered: form.panel loadRecord problem
I have a Partner model which has a PostAddress belongsTo relationship.
I can name textfields according to Partner properties like:
xtype: 'textfield',
id: 'name', /bind to partner object name property
name: 'name'
thats ok, calling loadRecord on form with partner parameter fields are filled up by partner properties.
but, I cant bind partner's PostAddress properties, because it wont work:
xtype: 'textfield',
id: 'postaddress.streetname',
name: ''postaddress.streetname'
what is the correct way to do this?
-
Best Answer Posted by
mitchellsimoens

Originally Posted by
ultra2
ok, and what to do in a grid, as I cant set a gridcolumn's dataIndex property like 'postaddress.streetname'?
If the data is still on the record, then you can use a renderer on the column.
-
Sencha - Senior Forum Manager
You would have to get the associated data and use loadRecord or setValues with that.
-
ok, and what to do in a grid, as I cant set a gridcolumn's dataIndex property like 'postaddress.streetname'?
-
Sencha - Senior Forum Manager

Originally Posted by
ultra2
ok, and what to do in a grid, as I cant set a gridcolumn's dataIndex property like 'postaddress.streetname'?
If the data is still on the record, then you can use a renderer on the column.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us