hcarpe1977 Posted September 2, 2009 Share Posted September 2, 2009 Hi all, quick question I hope ... As per the subject, is there a way of predefining the possible values of a parameter? I have a report with a Parameter called 'Customer', its a String, 'Use as a prompt' is set to true. At the moment when I run the report I have to remember the possible valid values of Customer. iReport however displays a drop down list which remembers my previous values as long as iReport is running. Is there some way to populate the drop down with a number of values and then have the user select one of those? Thanks in advance. H. Link to comment Share on other sites More sharing options...
tambellini Posted September 3, 2009 Share Posted September 3, 2009 Good question. Authors, no reply at all ? Link to comment Share on other sites More sharing options...
mdahlman Posted September 3, 2009 Share Posted September 3, 2009 H, JasperServer has that feature (input controls) but iReport does not. iReport allows you to run a report remotely on JasperServer; in this case you can be prompted for the parameter values. Regards,Matt Link to comment Share on other sites More sharing options...
hcarpe1977 Posted September 8, 2009 Author Share Posted September 8, 2009 Hi Matt, thanks for the response. I design the report in iReport and then upload it to a JasperServer. Maybe not a question for here, but if you know the answer, .... How would I define the options server side? Thanks. H. Link to comment Share on other sites More sharing options...
mdahlman Posted September 9, 2009 Share Posted September 9, 2009 H, As you imply, it's really a JasperServer question rather than an iReport question. The idea is that you create an input control with exactly the same name as the parameter. This can be done from the JasperServer plug-in in iReport or in the JasperServer web UI. Your input control can include a predefined list of values to choose from, or it can be a query to get values from a database table. Regards,Matt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now