Attaching tabbar to other tabbar cell

Hello

For the past hour and a half I’ve been trying to attach a tabbar to the cell of an other tabbar. I’ve read the documentation, but can’t find what I am missing. Here’s what I have already:

First tabbar in OnLoad

mainTabBar = dhxLayout.cells("b").attachTabbar(); mainTabBar.setImagePath("/<Computed Value>/"); mainTabBar.loadXML("/<Computed Value>/xmlTabsProjectModules?openagent&NoCache="+new Date().getTime()); mainTabBar.attachEvent("onSelect", doOnMainTabSelect);

Second toolbar in doOnMainTabSelect

function doOnMainTabSelect(id, last_id) { var subTabBar= mainTabBar.cells(id).attachTabbar(); subTabBar.setImagePath("/<Computed Value>/"); subTabBar.loadXML("/<Computed Value>/xmlTabsProjectModules?openagent&Parent="+id+"&NoCache="+new Date().getTime()); alert(mainTabBar.cells(id).getView().tabbar); }

This one doesn’t work. The alert shows [object] so the attachTabbar function should be working. The fields are nothing to worry about, the links work. This is the output of the loadXML:

<tabbar> <row> <tab id="grondverwerving#algemeen">Algemeen</tab> <tab id="grondverwerving#onderhandelingen">Onderhandelingen</tab> </row> </tabbar>

Perhaps the XML of the second tabbar should look a litle diffrent maybe…

onSelect event handler should return true if you want a clicked tab will be opened.

function doOnMainTabSelect(id, last_id)
{
var subTabBar= mainTabBar.cells(id).attachTabbar();
subTabBar.setImagePath("//");
subTabBar.loadXML("//xmlTabsProjectModules?openagent&Parent="+id+"&NoCache="+new Date().getTime());
alert(mainTabBar.cells(id).getView().tabbar);
return true;
}

Many…many thanks!