Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems with PortalLayout and addPortlet

    Greetings,

    We've been using version 7, but I have recently begun using version 8. I'm trying to create a simple test case where portlets are added into a single column portalLayout. When add them as members, they are always outside of the portalLayout, instead of inside of it. And if I use PortalLayout.addPortlet() instead, I get "object doesn't support method". Am I missing something obvious?
    Thanks
    S

    Code:
    isc.Label.create({
        height: 20,
        ID:"testlabel",
    	width:20,
        align: "left",
        valign: "left",
        showEdges: false,
        autoDraw:false,
        contents: "Dashboard"
    });
    
    isc.Label.create({
        height: 20,
        ID:"testlabel2",
    	width:20,
        align: "left",
        valign: "left",
        showEdges: false,
        autoDraw:false,
        contents: "Dashboard"
    });
    
    isc.Portlet.create({
    	ID:"portlet1",
        numColumns: 2,
        width:200,
        members: [
                 testlabel
    	],
    	autoDraw:false
    });
    isc.Portlet.create({
    	ID:"portlet2",
        numColumns: 2,
        width:200,
        members: [
                 testlabel2
    	],
    	autoDraw:false
    });
    
    isc.PortalLayout.create({
    	ID:"portalWindow1",
        numColumns: 1,
        width:700,
        defaultLayoutAlign:"left",
        columnBorder:"5px solid gray",
        members: [
                 portlet1,
                 portlet2
    	]
    });
    
    isc.VLayout.create({
    	width:750,
    	top:100,
    	left:165,
    	height: 600,border:"1px solid red",
     	members: [ portalWindow1 ]
    })

    #2
    addPortlet() is correct. Can you show code that produces the error and the stack trace (always required for a JS error).

    Comment


      #3
      Disregard the problem. It turned out that a CVS update problem overwrote the newer libs with old ones, so I didn't have current version 8 ISC code.

      Thanks.

      Comment

      Working...
      X