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.
Comment:
I do not absolutely understand how it is possible to make a button of a text element
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.
Comment:
I do not absolutely understand how it is possible to make a button of a text element
To create a button, create a
textField
withhyperlinkType="Reference"
and ahyperlinkReferenceExpression
Example
Will generate
when clicked it will direct you to the value of the
hyperlinkReferenceExpression
, in example I have also sethyperlinkTarget="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 thereportElement
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