Jump to content

can I print parameterDescription ?


motl

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...