Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Setting the style programmatically through BIRT
timotee
Hello,
I would like to know if there is a way to set the style programmatically the BIRT scripting. I am creating a dynamic table and need the styles to come in on fields and rows. I see a thread to do this through CSS, but i am not using style sheets.
Thanks,
timotee
Find more posts tagged with
Comments
mwilliams
Hi timotee,
In the script for your table or whatever report item you can use the script:
this.getStyle().Property_You_Want_To_Change = "Property_Value";
Hope this helps.
timotee
Thanks for your reply Michael and sorry if I wasn't clear. I was referring to the user defined styles or Themes you can set in BIRT.
Lived_Ip
You can do this in the report initialize function :
elem = reportContext.getDesignHandle().findElement("mylabel");
elem.setProperty("style", "Main Header");
Where "mylabel" is the name of the element you want to apply the style to, and "Main Header" is the name of the style definition.
timotee
That worked! Thanks so much Lived_Ip.
Pats
<p>Hi ,</p>
<p> </p>
<p>I want to set .css file through java programmetically for reports . how to do ?</p>
<p>As i want set whole css file at once not for each elelemet or specified element .</p>
<p> </p>
<p>Thanks in advance .</p>
JFreeman
<p>Take a look at this previous post on adding an external CSS file for the overall report design: <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/topic/36600-using-external-css-programmatically/'>http://developer.actuate.com/community/forum/index.php?/topic/36600-using-external-css-programmatically/</a></p>
;