title: How to populate form with JSON data using data store?
body: <p>How to populate form with JSON data using data store? How are the textfields connected with store, model?</p>
  
  <pre><code>Ext.define('app.formStore', {
  extend: 'Ext.data.Model',
  fields: [
     {name: 'naziv', type:'string'},
     {name: 'oib', type:'int'},
     {name: 'email', type:'string'}
  ]
  });
  
  var myStore = Ext.create('Ext.data.Store', {
  model: 'app.formStore',
  proxy: {
      type: 'ajax',
      url : 'app/myJson.json',
      reader:{ 
          type:'json'                     
      }
  },
  autoLoad:true   
  });
  
  Ext.onReady(function() {
  
  
  var testForm = Ext.create('Ext.form.Panel', {
                      width: 500,
                      renderTo: Ext.getBody(),
                      title: 'testForm',
                      waitMsgTarget: true,
                      fieldDefaults: {
                          labelAlign: 'right',
                          labelWidth: 85,
                          msgTarget: 'side'
                      },
                      items: [{
                          xtype: 'fieldset',
                          title: 'Contact Information',
                          items: [{
                                  xtype:'textfield',
                                  fieldLabel: 'Name',
                                  name: 'naziv'
                              }, {
                                  xtype:'textfield',
                                  fieldLabel: 'oib',
                                  name: 'oib'
                              }, {
                                  xtype:'textfield',
                                  fieldLabel: 'mail',
                                  name: 'email'
                          }]
                      }]
  
              });
  
      testForm.getForm().loadRecord(app.formStore);
   });
  </code></pre>
  
  <p>JSON</p>
  
  <pre><code>[
      {"naziv":"Lisa", "oib":"2545898545", "email":"lisa@simpson.com"}        
  ]
  </code></pre>