Is it possible to add a button in the report, which any action will be fixed?
Example: Button \"View\", which will show more detailed statistic.
To create a button, create a textField with hyperlinkType="Reference" and a hyperlinkReferenceExpression
Example
Will generate
when clicked it will direct you to the value of the hyperlinkReferenceExpression, in example I have also set hyperlinkTarget="Blank" so it opens in a new page.
For additional information on the attributes see JRHyperLink API
Hey I want my button to change color when I pass over it....
No problem, (as long as export is html, in pdf you need to do some tricks with annotation but I will leave this out..).
I have added some css tags on the textElement see the property under the reportElement
So some simple css.
Finally, how do I put this css in the output file?
Export custom HTML template
How to add css to jasper report server