Hi All !
I want to print parameterDescription + parameter value in Title section.
Is there some method to print it?
Thanks.
Attachments:
2 Answers:
Posted on November 20, 2012 at 1:07am
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