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

0

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

milber.ch's picture
Joined: Jun 24 2013 - 10:29am
Last seen: 2 months 3 weeks ago

2 Answers:

0

Hi,

Set your default value from parameter default expression in iReport.

Regards,

Ajinkya

ajinkya_c's picture
917
Joined: Aug 29 2012 - 6:13am
Last seen: 6 days 21 hours ago
0

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
1
Joined: Aug 15 2012 - 3:00am
Last seen: 9 months 2 weeks ago

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

simon_tsa - 8 months 2 weeks ago
Feedback
randomness