natansouzag Posted January 6, 2014 Share Posted January 6, 2014 Is possible I use dropdown and textbox for send parameters on iReport? Link to comment Share on other sites More sharing options...
brianthemike Posted January 6, 2014 Share Posted January 6, 2014 I believe what you are looking for can be found here:http://community.jaspersoft.com/documentation/jasperreports-server-user-guide/adding-input-controlsBut 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 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