I have to add text or background image as "DRAFT" for report when it match certain condition.I have to dynamically enable or display birt report back ground text ?
I am looking forward to hear any ideas.
Thanks In Advance. Thillakan.
To set up a static background image as you would:
However, to make it dynamic based on something (such as a parameter), you can use Javascript to manipulate the report items directly. This is covered in chapter 13 of "Integrating and Extending BIRT" which, along with "BIRT, A Field Guide to Reporting", every BIRT report designer should have.
The easiest way is to name your master page specifically in the report designer and use ReportDesignHandle.findElement(<name>)
to get its handle. Then use a setter to dynamically change the background image. The beforeRender
script is the one where you want to put all this code which sets the background image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With