ethael Posted September 29, 2008 Share Posted September 29, 2008 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 More sharing options...
ethael Posted September 30, 2008 Author Share Posted September 30, 2008 I have solved the problem. I just forgot to put parameter declaration also to subdataset tag. 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