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

Passing parameter to subdataset


ethael

Recommended Posts

Hello everybody,

 

I have a master report with 4 subreports. Last of the subreports has 4 charts. So that 4th subreport has 4 subdatasets. I am passing parameters from master to all subreports. But I don't know how to pass parameter from subreport to subdataset.

I have tried to declare parameter that is comming from master in subreport and then put this parameter into datasetRun of the subdataset:

<datasetParameter  name="classpath">
       <datasetParameterExpression><![CDATA[$P{classpath}]]></datasetParameterExpression>
</datasetParameter>

parameter classpath comes from master reports. I have declared this parameter in subreport too:

    <parameter name="classpath" isForPrompting="false" class="java.lang.String">
    </parameter>

but the exception is that there is unkown parameter classpath in subdataset.

 

can anyone help?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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