Unfortunatly I receive the following error:
in FF: mylayout.cells(“a”).attachForm is not a function
in IE: Object doesn’t support this property or method.
It works fine when using a tabbar, but not on a layout.
I included the dhtmlxcommon.js, dhtmlxcontainer.js, dhtmlxlayout.js and dhtmlxform.js
I couldn’t find the function in the documentation under the layout api methods. So I’m a bit confused if this function is actually supported as described in the earlier example.
can you confirm if it is supported or not and if it is, what I’m doing wrong?
I did not forget to include dhtmlxform.js.
I’m also aware of the example you mention, but it is not useful to me.
In your example you set the structure in a variable on the page, I need the structure to be loaded from xml or json as is seen in a code-example at the bottom of this page: docs.dhtmlx.com/doku.php?id=dhtm … ntegration
With a layout-cell this produces an error. With a window-cell or a tabbar-cell this works.
Nice timing on this. I had the exact same problem and found that the order of JS files appears to be relevant. I was banging my head on the ‘mylayout.cells(“a”).attachForm is not a function’ error until, after reading this thread, I tinkered with the order of the JS files. What ended up working for me was: