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

Report help!!!


2005 IR Help

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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