title: Sencha architect popup window
body: <p>I have a grid and I try to open the view with id "popup" of type "Ext.form.panel" to edit a single entry from the grid.</p>
  
  <p>I ended up with the following:</p>
  
  <pre><code>onGridpanelSelect: function(rowmodel,record,index,e0pts) {
      if(Ext.getCmp('popup')) var sample = Ext.getCmp('popup');
      else var sample = Ext.create('MyApp.view.popup');
      sample.update(record.data);
      // Ext.Viewport.add(sample);
      Ext.Viewport.setActiveItem(sample);
  }
  </code></pre>
  
  <p>But Firefox tells me that neither Ext.Viewport.add nor Ext.Viewport.setActiveItem are functions. What exactly does he try to really tell me?</p>
  
  <p>(<code>TypeError: Ext.Viewport.add is not a function</code> or <code>TypeError: Ext.Viewport.setActiveItem is not a function</code>, depending on whether the comment is there)</p>