• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED] Build your own portal ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED] Build your own portal ?

    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):

    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');
    	}
    });
    any hints, clues, suggestions would be appreciated...

  • #2
    Originally posted by mwmayer4 View Post
    Code:
    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'
                                    }
                            }]
                    });

    What kind of item are you putting in your viewport?
    And what kind of item are you trying to put in the item you are putting in your viewport? (The one with the loader config?)

    Comment


    • #3
      I'm adding a tab to the viewport and the "item" is another MVC app...
      not sure what you mean?

      Comment


      • #4
        I'm not sure if this will end up working as you want it to or not, but for starters you don't have xtypes on those config objects, so they will be the default for the parent components.

        If I understand correctly, this is outside of Valence Support.

        Comment

        Working...
        X