Jump to content

Predefined Possible Parameter Options


hcarpe1977

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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

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