mattmb
-
Posts
3 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by mattmb
-
-
I've found the answer.
The java expression to use is:$P{JASPER_REPORT}.getName()
-
Hi,
I would like to know how to display the report or the template name as a title in the header section.
For eg., if my template is "Business-report01.jrxml", I would like to display "Business-report" in the header.
What's the java expression to do it ?
Thanks for your assistance,
Best regards
Matt
How to show Input Parameter in jasper report?
in Products
Posted
You may use a java expression like the following in a textfield of your header:
( ( null != $P{User Name } ) || ( null != $P{User ID } ) ) ? "Filter by:" + ( ( null != $P{User Name } ) ? " User Name- " + $P{User Name } : "" ) +
( ( null != $P{User ID } ) ? " User ID- " + $P{User ID } : "" ) : ""