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 change cell format from grid scripts
Migrateduser
Hi,<br />
<br />
using Birt 2.6.2 I wanna change cell borders and background colors in a grid.<br />
<br />
If I use the onPrepare script of a certain cell, I can change things this way.<br />
<strong class='bbc'>this.getStyle().backgroundColor = "gray"</strong><br />
<br />
If I use the onPrepare script of the grid, I can't.<br />
I can get the cell this way<br />
<strong class='bbc'><br />
grid = reportContext.getDesignHandle().findElement("myGrid");<br />
row = grid.getRows().get(0);<br />
cell = row.getCells().get(0);</strong><br />
<br />
I can add new elements in the cell<br />
<strong class='bbc'>cell.getContent().add();</strong><br />
<br />
But this returns null<br />
<strong class='bbc'>cell.getStyle();</strong><br />
<br />
How can I change the formatting of the cells of my grid, from <span class='bbc_underline'>within the grid script</span>?<br />
<br />
regards
Find more posts tagged with
Comments
There are no comments yet