Jump to content
JasperReports 7.0 is now available ×

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Reports are designed in iReport to take parameters. You include them in the SQL query with the $P and $X syntax. Parameters can be initialized with expressions, so all is dynamic.


In JasperReports Server, parameters are called input controls, and they can be mandatory, hidden, and have initial values. If a report has parameters, the viewer will display a dialog tha has fields for the user to enter the information (either above the report area, to the left, or as a floating dialog--behavior is configured when you upload the JRXML). After the entering the inputs, the JasperReports engine plugs them into the query string, obtains the data, and generates the report. Also, users can save a set of input controls as a report option, which can be run again without needing to enter the information.



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