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

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I believe what you are looking for can be found here:

http://community.jaspersoft.com/documentation/jasperreports-server-user-guide/adding-input-controls

But essentially, you create a parameter in iReports and give it a name, like theParameter.  Add that to your report query (you can drag/drop the newly created parameter to the query). If using SQL it would look something like this: SELECT name, field1, field2  FROM table WHERE name = $P{theParameter}.

Publish that report, and add an input control to the published report. Give the input control the same name as your parameter.  Change the input control's type to something like Single Select Query.  You can then make a query to populate the dropdown, in this case: SELECT name FROM table.  Make sure to add the field (in this case "name") to the value/visible columns.

That should get you a simple dropdown of everything in the column "name" from the table "table"

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