2005 IR Help Posted August 24, 2006 Share Posted August 24, 2006 By: srini - kapsljava Report help!!! 2004-03-17 22:54 Hi all, I got the parameter in the sub report as : parameter = new JRDesignParameter(); parameter.setName( "City" ); parameter.setValueClass( String.class ); jasperDesign.addParameter( parameter ); I am setting the parameter in the main report as: JRDesignSubreportParameter subPara = new JRDesignSubreportParameter(); subPara.setName( "City" ); expression = new JRDesignExpression(); expression.setValueClass(String.class); expression.setText( "$F{City}" ); subPara.setExpression( expression ); subreport.addParameter( subPara ); What s happening in the report output is main report Boston sub report all the datas which includes other city details too. I can't able to catch the problem, whether i have to match something like $P{City}==$F{City} in subreport design, Please help me any solutions are appreciated......... srini 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