title: Save data into Store from Form Submit success ExtJS
body: <p>I have a Form (Ext.form.FormPanel) which is basically a login panel with two fields like user_name and password, and a button which does form submit. Now i am able to submit data to my php service which also returns data and i am able to see the data in the action.result (this is actually a UserVO which has fields like user_name, password, user_type, user_id...).</p>
  
  <p><strong>PFB for the exact data</strong></p>
  
  <pre><code>id
      1
  
  user_name
      "super@super.com"
  
  password
      "cccccccc"
  
  first_name
      "Super"
  
  last_name
      "Super"
  
  user_type
      "Super"
  
  parent_id
      0
  
  _explicitType
      "certification.vo.UserVO"
  
  success
      true
  </code></pre>
  
  <p>Now my question is how is it possible to get grab this result data from action.result, parse it to a Model type and store it in my application so that it is available in the application(Ext.application) for other views to use.</p>
  
  <p><strong>My User Model class is as below.</strong></p>
  
  <pre><code>Ext.define('Certify.model.UserVO',{
      extend: 'Ext.data.Model',
      fields: ['id','user_name','password','first_name','last_name','user_type','parent_id','_explicitType']
  });
  </code></pre>
  
  <p><strong>My Application is as below.</strong></p>
  
  <pre><code>Ext.application({
      requires : ['Ext.container.Viewport', 'Ext.form.FormPanel', 'Ext.Window', 'Ext.container.Container', 'Ext.Button', 'Ext.app.Controller'],
      name : 'Certify',
      appFolder : 'app',
      models: ['UserVO'],
      controllers : ['LoginController'],
      launch : function() {
          Ext.create('Ext.container.Viewport', {
              layout : {
                  type : 'vbox',
                  align : 'center',
                  pack : 'center'
              },
              items : {
                  xtype : 'loginview'
              }
          });
      }
  });
  </code></pre>
  
  <p><strong>And Also my form submit.</strong></p>
  
  <pre><code>var callData = JSON.stringify(callDataObj);
                      Ext.getCmp('loginForm').getForm().submit({
                          url : url + "login_json/" + callData,
                          method : 'POST',
                          waitTitle : 'Connecting',
                          waitMsg : 'Sending data...',
                          success : function(form, action) {
                              Ext.Msg.alert('Status', 'Login Successful!', function(btn, text) {
                                  if (btn == 'ok') {
                                      var redirect = './superuser.html';
                                      window.location = redirect;
                                  }
                              });
                          },
  </code></pre>