How set a default value on input control simple selection query?


How set a default value on input control simple selection query?'s picture
Joined: Jun 24 2013 - 10:29am
Last seen: 5 years 5 months ago

2 Answers:



Set your default value from parameter default expression in iReport.



ajinkya_c's picture
Joined: Aug 29 2012 - 6:13am
Last seen: 2 years 8 months ago

I am having the same problem, but all the answers I find suggest setting the default in iReport; this really isn't suitable.

I have reports that run queries over multiple database schemata and am trying to parameterise the database usernames. I can do this succesfuly in iReport and set the defaults in there, and indeed the defaults work fine in jasper server. But I want to be able to override these values in jasper server, I can not guarantee the database usernames accross multiple deployments, but once deployed they are clearly unlikely to change.

I don't think it is unreasonable to be want to set up a parameter with a default value to be used by a report in jasper server itself, so that the value can be updated by an end user without being prompted for that value everytime the report is run. Surely, there is no real advantage to setting a default value in the jrxml, I'd be as well hard coding the value if it can't be changed without rewriting the jrxml file anyway.


harpo's picture
Joined: Aug 15 2012 - 3:00am
Last seen: 3 years 2 months ago

I'm in this exact situation now - did you manage to find a way to do it?

simon_tsa - 5 years 11 months ago