Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Style for Code
Netzio
Hello Masters,
Apply styles to different columns, rows or style through report itself, but doing it by code (Script) ...
... Is this possible.
Thanks
use Birt 2.3.2 with Eclipse Ganymede
Find more posts tagged with
Comments
johnw
Yes.<br />
<br />
You can use the this. In the onCreate method for a report item, you can use the following to get access to the style properties:<br />
this.getStyle()<br />
<br />
If you are applying a style defined in the report styles section, you would use the following in the reports initialize or beforeFactory event:<br />
reportContext.getDesignHandle().findElement("elementName").setStyleName("styleName");<br />
<br />
John<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="'Netzio'" data-cid="68378" data-time="1284414816" data-date="13 September 2010 - 02:53 PM"><p>
Hello Masters,<br />
<br />
Apply styles to different columns, rows or style through report itself, but doing it by code (Script) ...<br />
<br />
... Is this possible.<br />
<br />
Thanks<br />
<br />
use Birt 2.3.2 with Eclipse Ganymede<br /></p></blockquote>