basememara
31 Dec 2011, 7:34 AM
In my application, I have autoCreateViewport set to true. Is there a way to get a reference to this viewport since it was set globally by the application? I tried Ext.Viewport and this.getLayout in my controller click events, but neither worked. I am trying to do something like this in my one of my click events: Ext.Viewport.setActiveItem('productdetail'). I get this error though:
Uncaught TypeError: Object function constructor() {
return this.constructor.apply(this, arguments);
} has no method 'setActiveItem'
Uncaught TypeError: Object function constructor() {
return this.constructor.apply(this, arguments);
} has no method 'setActiveItem'