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

Pass parameters to sub reports


Ettya

Recommended Posts

I have created a report that calls three sub-reports.

Each sub report resides inside a report group.

There is one parameter that is defined in each of the Sub Reports and in the calling report.

I assumed that the value of this parameter will be sent to each of the sub-reports but it doesn’t seem to happen (when I run the main report, the sub reports are empty with no data).

Is there anything I should do in order to make sure that the parameter will be passed to the sub-reports??

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You need to establish a link between the parameter in the main report and the parameter in the sub-report.

 

 

To do this you edit the subreport's properties in the main report and set up the parameter settings under the Subreport Parameters tab.

Link to comment
Share on other sites

If I have a parameter called "X" both in main and in Sub report and I want the sub-report parameter to get teh same value set to the main report parameter.

Is all I need to do is just add a line where

Parameter = X and Expression = $P{X} ??

 

Thank you,

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