Hi, I’m trying to embed a grid in a form and then get a handle to the form using form.getContainer() but keep getting the error message that “Object doesn’t support this property or method”.

Here is the code i’m using

formChargeOffs = [
{ type: "container", name: "Recoveries", label: "Actual Recoveries", inputWidth: 330, inputHeight: 200 },

frmCO = new dhtmlXForm("form_container", formChargeOffs);
recGrid = new dhtmlXGridObject(frmCO.getContainer("Recoveries"));

Oh and we are using the Enterprise version. Any ideas?


Let me first ask what .js file is getContainer() defined in so I can make sure first that it is being included.


This file is dhtmlxform_item_container.js … _container