beau.blumberg Posted November 13, 2012 Share Posted November 13, 2012 Hello, I am designing a report in iReport Designer 4.8.0 and I want to be have two tables in the title section of the report. Ideally, I'd like both datasets to use the same parameter to filter within the query. My thought was to create a parameter in the main dataset, and then a parameter for each of the tables' datasets, and set the default value of the each table's dataset's parameter to the value of the main dataset's parameter. I assumed that when running the report, I would be prompted for the main dataset's parameter and it would be passed to the tables' dataset queries. However, it looks like you can't "share" a parameter between datasets (even within default values of other parameters). Is there another way to accomplish what I am trying to do? Thanks in advance! Link to comment Share on other sites More sharing options...
Solution lucianc Posted November 13, 2012 Solution Share Posted November 13, 2012 You need to explicitly send the master parameter value to both subdatasets.In iReport, right click the table in the report inspector, and do Edit table data source/Parameters.HTH,Lucian Link to comment Share on other sites More sharing options...
beau.blumberg Posted December 10, 2012 Author Share Posted December 10, 2012 This did indeed work. Thank you much for your help! Link to comment Share on other sites More sharing options...
cek.i06go Posted January 20, 2014 Share Posted January 20, 2014 And with JasperStudio? 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