problem with dhtmlxLayout and tabbar and second tabbar

hello,
I have one layout 3l
In cell “a” I have entered a tree and in cell c entered a Tabbar and a second TabBar inside the first tabbar.
opening the page everything works
but in double click event in the tree should display a page in the second tabbar .
gives me error.
“Error: ‘dhxTabbar2’ is null or not object”
attach code bottom
help me please :unamused:
thank you very much

Hello,

dhxTabbar2 is private variable:

var dhxTabbar2 = dhxTabbar.cells(“a5”).attachTabbar(“bottom”);

try making it global:

dhxTabbar2 = dhxTabbar.cells(“a5”).attachTabbar(“bottom”);