ktrinad Posted August 20, 2006 Share Posted August 20, 2006 By: Tom Bim Bam Bom - borek1977 bug: subreport and subreportParameter 2004-06-08 07:38When I try to use a trick from jasper page: "Returning values from subreport" I've added to my subreport: <subreportParameter name="ReturnedValuesMap"> <subreportParameterExpression> $P{ReturnedValuesMap} </subreportParameterExpression> </subreportParameter> But i have also definded in the same subreport: <parametersMapExpression> $P{2SubParams} </parametersMapExpression> Exception in compilation is: Cannot compile xml definition to report: Element "subreport" does not allow "parametersMapExpression" here. By: Chuck Deal - cdeal RE: bug: subreport and subreportParameter 2004-06-08 12:52you will need to show the full XML definition of the subreport tag. It sounds like you have violated the DTD. It should be a simple fix, but it is not obvious from the snippets that you posted. By: Tom Bim Bam Bom - borek1977 RE: bug: subreport and subreportParameter 2004-06-08 23:50Sub report definition looks like: <subreport isUsingCache="true"> <reportElement x="15" y="16" width="510" height="20" backcolor="#FFCC99" isPrintRepeatedValues="true" isPrintWhenDetailOverflows="false" isRemoveLineWhenBlank="true" positionType="Float"/> <parametersMapExpression> $P{CE2SubParams} </parametersMapExpression> <subreportParameter name="ReturnedValuesMap"> <subreportParameterExpression> $P{ReturnedValuesMap} </subreportParameterExpression> </subreportParameter> <dataSourceExpression> $P{CE2SubDataSource} </dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"> $P{CE2SubReport} </subreportExpression> </subreport> If think both subreportParameterExpression and parametersMapExpression can be use at the same time. But I've solved the problem using only subreportParameterExpression 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