nagibeni Posted December 27, 2017 Share Posted December 27, 2017 I'm new at jasperstudio i need to pass a parameter to a query where i need to select values from another queryExampleTable:doc nomEF description EFET description ETER description ERMy query is select doc,nom from table where tpo in ('EF','ET)the values EF, ET i get it from this query (select tpo from tabla) and pick those values in the jasperserverHow i define those parameters?I try with $P!{Parameter} but i cant make it work, i dont know how to define those values as parameters and pick them when y call the report in jasperreportSorry my english, not very good.Thank you very much Hope you can help me Link to comment Share on other sites More sharing options...
dprogrammer Posted December 29, 2017 Share Posted December 29, 2017 Can you use your second query in your IN clause?select doc,nom from table where tpo in (select distinct(tpo) from tabla));If not, do you except the values from second query to popup in parameter drop down? 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