Jump to content
We've recently updated our Privacy Statement, available here ×

How can add query with parameter inside report?


subodhjoshi82

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

To reference a parameter in your query you would write your query in similar to the following:

Select x, y, z from table where col1 = $P{parameter_name}

Then, assuming that you are deploying to JasperReports Server, you would set up an input control with the same name as the parameter to allow your end users to set the value of the parameter.  

Here is some additional information on using parameters in reports: http://community.jaspersoft.com/wiki/using-report-parameters

Link to comment
Share on other sites

  • 5 years later...

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