motl Posted November 20, 2012 Share Posted November 20, 2012 Hi All !I want to print parameterDescription + parameter value in Title section. Is there some method to print it? Thanks. Link to comment Share on other sites More sharing options...
rubamushtaq Posted November 20, 2012 Share Posted November 20, 2012 You can print parameter value in tile band once your parameter gets matched agianst the field you are comparing with ,and then you just need to drag that field into title band. Link to comment Share on other sites More sharing options...
lucianc Posted November 20, 2012 Share Posted November 20, 2012 You'll need a custom scriptlet for that, $P{..} exposes the parameter value.In the scriptlet you can write a method that does the following: public String getParameterDescription(String paramName) { JRFillParameter param = parametersMap.get(paramName); return param == null ? null : param.getDescription(); } Then you would do $P{REPORT_SCRIPTLET}.getParameterDescription("paramName") in the report.Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now