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 to get the row count in a fixed grid
Migrateduser
Hi,<br />
<br />
using Birt 2.6.2 I wanna use a fixed grid (e.g. 3 cols, 30 rows, may vary for diff reports) <br />
and add labels and set descriptions in the cells and set border colors with java script.<br />
<br />
This way I can access all columns only in the first row.<br />
<br />
var grid = this.reportContext.getDesignHandle().findElement("myGrid");<br />
row = grid.<strong class='bbc'>getRows().get(0);</strong><br />
<br />
cols = this.getReport().getGrid("myGrid").<strong class='bbc'>getColumnCount</strong>()<br />
for (var i = 0; i < cols;i++) {<br />
cell = row.getCells().get(i);<br />
}<br />
<br />
But why is there nothing like '<strong class='bbc'>.getRowCount()</strong>' ?<br />
<br />
I mean, its a matrix with a fixed set of rows and columns, but I see not such a method.<br />
<br />
How can I get the row count?<br />
<br />
regards
Find more posts tagged with
Comments
There are no comments yet