I'm trying to develop a Sencha portal app similar to the Valence portal but without all the many extras. It needs to run as a stand-alone app outside of the Valence portal...
It has a menu button which will launch other MVC apps inside the border layout in tabs. I've banged away at it for a good while but haven't found the right combo to get it to work.
I've gotten as far as seeing in the console where after selecting a menu item, the associated MVC app html being loaded, but it crashes (never fully loads all the .js) and launches in the current window over the portal...
Here's what I tried (obviously it must be more complicated):
any hints, clues, suggestions would be appreciated...
It has a menu button which will launch other MVC apps inside the border layout in tabs. I've banged away at it for a good while but haven't found the right combo to get it to work.
I've gotten as far as seeing in the console where after selecting a menu item, the associated MVC app html being loaded, but it crashes (never fully loads all the .js) and launches in the current window over the portal...
Here's what I tried (obviously it must be more complicated):
Code:
Ext.define('Portal.controller.Main', { extend: 'Ext.app.Controller', refs: [{ selector: 'viewport', ref: 'Viewport' }], init: function() { this.control({ '#vp-north-button1': { testbutton1: this.onTestbutton1 } }); }, onTestbutton1: function() { var vp = this.getViewport().down('#center-region'); vp.add({ layout: 'fit', closeable: true, title: 'added', plain: true, itemId: 'added1', items: [{ loader: { url: '/internet/rvi/imageinquiry/app/index.html', autoLoad: true, scripts: true, contentType: 'html', renderer: 'html' } }] }); vp.setActiveTab('added1'); } });
Comment