I have this .JSON file.
I have a model customer:
and a model phone:
I created a form with 4 text fields. I am trying to fill them with the values from the JSON. Using this code at the launch:
var customers = Ext.getStore('s_customers');
var customer = customers.getAt(0);
alert(customer.get('phone').characteristic); //This correctly shows the alert with the value 21
The problem is that only the text field with id is correctly filled. The others won't work. How do I have to bind the other text fields with data from the model? Is ok to use "name: 'phone.characteristic'"? The relationship that I've created is wrong?
margin: '0 10 0 0',
Thanks in advance.