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

How to pass report parameter to multiple datasets?


jfairhall

Recommended Posts

I am using jasper studio 6.13.0.

I have a report that is given an id, and multiple datasets are attempting to use that id to run their sql.

I have defined the id as a parameter on the report, not the datasets.

Each dataset has a parameter that I want to map to the report parameter.

Most of what I can find googling is I should be able to define an expression on the dataset parameter pointing to the report parameter, but this does not seem to be working.

For one thing, all the screenshots of how to do this have the dataset parameter with an expression, but JS Studio has the parameters with a default expression, and I can't set the default expression to $P{<report parameter id name>}

 

Any ideas?

 

Link to comment
Share on other sites

  • 3 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You need to map the main report parameter to each of your subdataset parameters.  However, this is done under the Parameters property of the component that is using the subdataset (ie: subreport, chart, table, etc)     You want the following from the properties window to map parameters (see attachments and Edit parameters button and dialog)

 

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