title: ok button in record Form plugin in extjs
body: <p>how to get the updated records,i am overriding the on Ok function to save changes in form.
  1.i just override the on ok function,but not able to get modified record.</p>
  
  <pre><code>Ext.override(Ext.ux.grid.RecordForm , {
      onOK:function() {
  
              updateRecord1();
          }
  
  });
  function updateRecord1() {//alert('record');
  var records =store.getModifiedRecords();
          if(!records.length) {
              return;
          }
          var data = [];
          Ext.each(records, function(r, i) {
              var o = r.getChanges();
              if(r.data.newRecord) {
                  o.newRecord = true;
              }
              o[idName] = r.get(idName);
              data.push(o);
          });
          var o = {
               url:gl_acc.php
              ,method:'post'
              ,params:{
                   record:record.get('id'),
                   task:'update'
              }
          };
          Ext.Ajax.request(o);
      } // eo function commitChanges
  </code></pre>