Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
How I can add new row in table through javascript
Migrateduser
Hi All,<br />
I have empty report. I create new table in report through JavaScript as follows<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
elementFactory = reportContext.getReportRunnable().designHandle.getElementFactory();
var num = 10;
dynamicTable = elementFactory.newTableItem("myNewTable", num);
dynamicTable.setWidth("100%");
myNewRow = dynamicTable.getDetail().get(0);
for (var i=0;i!=num;++i) {
firstCell = myNewRow.getCells().get(i);
label = elementFactory.newLabel(null);
label.setText("Header_" + 1);
firstCell.getContent().add(label);
}
reportContext.getReportRunnable().designHandle.getBody().add(dynamicTable);
</pre>
I can add new cell in header, but I also want add new row without use DataSet. How I can do it? <br />
Thanks.
Find more posts tagged with
Comments
There are no comments yet