title: Getting the form to submit when clicking the submit button
body: <p>I'm trying to submit the form when the button is clicked, however it wasn't as simple as i thought, i always end up getting a <em>fp.getForm</em> is not a function, although the submit handler is taken directly from the ExtJs doc, any clue?</p>
  
  <pre><code>Players.panel.Subscription = function(config) {
      config = config || {};
      Ext.apply(config,{
          border: false
          ,baseCls: 'modx-formpanel'
          ,process: 'mgr/player/getSubscribers'
          ,standardSubmit: true
          ,url: Players.config.connectorUrl
          ,baseParams: { action: 'mgr/player/getSubscribers' }
          ,buttons: [{
                      text: 'Export er'
                      ,formBind: true
                      ,type: 'submit'
                      ,handler: function(){
  
  
                              var fp = this.ownerCt.ownerCt,
                                  form = fp.getForm();
                              if (form.isValid()) {
                                  // check if there are baseParams and if
                                  // hiddent items have been added already
                                  if (fp.baseParams &amp;&amp; !fp.paramsAdded) {
                                      // add hidden items for all baseParams
                                      for (i in fp.baseParams) {
                                          fp.add({
                                              xtype: 'hidden',
                                              name: i,
                                              value: fp.baseParams[i]
                                          });
                                      }
                                      fp.doLayout();
                                      // set a custom flag to prevent re-adding
                                      fp.paramsAdded = true;
                                  }
                                  form.submit();
                              }
  
                  }
                  }]
  
      });
      Players.panel.Subscription.superclass.constructor.call(this,config);
  
  };
  </code></pre>
  
  <p>I also tried replacing the base class from <em>modx-formpanel</em> to <em>formpanel</em> and <em>basicform</em> with no success.</p>
  
  <p>Thanks</p>