Just starting to learn DHX and designing for a real world App already up and running, but I’m integrating a new component.
Got something working with a 2U layout, but when I went to then make it a 5G I get the error:
“Cannot read property ‘setText’ of null at window on.load”
In this code:
window.onload=function(){
lo=new dhtmlXLayoutObject(document.body,“5G”);
lo.cells(“a”).setText(“Doc Center”);
lo.cells(“b”).setText(“Dashboard”);
lo.cells(“c”).setText(“Info”);
lo.cells(“d”).setText(“Actions1”); << ERROR
lo.cells(“e”).setText(“Actions2”);
lo.cells(“d”).setWidth(lo.cells(“d”).getWidth().33);
lo.cells(“e”).setWidth(lo.cells(“e”).getWidth().33);
lo.cells(“a”).attachObject(“content”);
tabs=lo.cells(“d”).attachTabbar();
tabs.addTab(“statuschange”,“Status Change”,““);
tabs.addTab(“editdata”,“Edit Data”,””);
tabs.cells(“statuschange”).attachobject(“statuschangeaction”);
tabs.cells(“editdata”).attachobject(“editdataaction”);
}
I’m assume the label are assigned left top to down, and left to right across, though I’m not sure that matters.
I’m hoping someone can help explain this.