省煤层气公司-填报.cpt
三门峡-填报.cpt
我在web属性那里加了一个提交按钮隐藏,用JS获取控件值进行判断,不隐藏控件那列的时候好使,隐藏那列之后提示:CustomJSError : contentPane.getWidgetByName(...) is null
var D13=contentPane.curLGP.getCellValue("N3");;//根据单元格 if(D13 <= 2) { contentPane.toolbar.options.items[1].setVisible(true);//可见 } else { contentPane.toolbar.options.items[1].setVisible(false);//不可见 };
你把N3单元格的控件删了,直接用单元格值试试
D13定义一下