Jump to content

Recommended Posts

Posted

Hello,

Input controls are not working in Jasper Server after publishing the reports from jasperstudio.

JasperServer : jasperreports-server-cp-6.4.0-bin

JasperStudio : JasperStudio 6.4.0.Final

I have runtim parameters in my report with different datasets, which is working fine in JasperStudio.

I published the same report to jasper server and entered the input parameners after running. Those values are not populated to queries in the report. Its showing as null in logs.

2017-10-12 11:05:38,688 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:569 - Parameter #1 (TIME_FROM of type java.lang.String): null
2017-10-12 11:05:38,689 DEBUG JRJdbcQueryExecuter,pool-4-thread-2:569 - Parameter #2 (TIME_TO of type java.lang.String): null

Please help me with clear steps of how to map the parameters in jasperstudio to jasperserver?

Thanks in advance.

  • 2 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Posted

I solved with two steps:

1. Create the parameter in Jasperserver input control.

2. Create the parameter inside the Jaspersever report, and called it from the repository

3. Reduce the lenght name of my parameter. I had ie. Par-PEF-yr as the parameter name, then I changed it to PAR and it worked for me.

4. The parameter inside Jasperstudio has to be the same name and data type. In my case I had in Jasperserver a number type and in Jasperstudio a java.lang.Integer type

  • 6 months later...

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...