extjs - Change View in Sencha Architect -


I am quite new to the architect as well as the EXTJ. I have created an application with many views (2 containers) when I click on a button in container I am trying to switch ideas I have an incident that is good to ignite, which I do not know next scene How to switch over? I have tried:

  if (Ext.getCmp ('main view')) {Ext.Viewport.setActiveItem (Ext.getCmp ('mainView')); } Else {var view = Ext.create ('Snapwire.view.mainView'); Ext.Viewport.setActiveItem (see); }   

But it throws only a console error:

  Unicode type error: object function () {return.constructor.apply (this, logic) ; } There is no way 'setActiveItem'   

Thanks!

Please see this link if you can get access to Navigation by viewing < P>

Hope this helps ^^

Comments