Attach does not work on layout inside layout

Hi,

When i attach i layout to a layout… all the attach funtion don’t work on that new layout.

var dhxLayout2 = dhxLayout.cells(“a”).attachLayout(“1C”);
var barChart1 = dhxLayout2 (“a”).attachChart({… etc

is there a way around this?

Thanks!

Hi
Do you place the second line like this:
var barChart1 = dhxLayout2 (“a”).attachChart({… etc
or like this:
var barChart1 = dhxLayout2.cells(“a”).attachChart({… etc