【发布时间】:2017-03-04 20:13:54
【问题描述】:
我的仪表板中有一个表格,我想显示它包含多少行。就像 javascript 警报弹出窗口一样。
注意:它必须在加载仪表板上显示一个弹出窗口,其中包含给定表格的行数。
到目前为止,我尝试了这个,但没有奏效。我在 preExecution 中使用了这些代码。
function f(){
var rowCount = document.getElementById('myTableID').rows.length;
alert(rowCount);
}
&
function testClick(e) {
var id = e.tableData.rows.length;
alert(id);
}
谢谢
【问题讨论】:
标签: javascript jquery pentaho pentaho-cde pentaho-ctools