Jump to content
JasperReports Library 7.0 is now available ×

subreport help!!!


2005 IR Help

Recommended Posts

By: srini - kapsljava

subreport help!!!

2004-03-14 22:47

Hi all,

 

Iam using the JRDataSource for my reporting, I passed the parameter from the master report to the subreport using subreport parameter, I don't know what kind of alteration i have to do in subreport with the passed parameter.

 

Please help me!! I need this urgently, give me some sample of code to be altered in subreport.

 

Thanks in advance

From

Srinivas

 

 

 

 

By: David Lim - aberrant80

RE: subreport help!!!

2004-03-14 23:02

You don't need to alter anything in the subreport. the dataSourceExpression that you use (did you?) in the main report will pass the data source directly in to the $P{REPORT_DATASOURCE} default parameter in the subreport.

 

 

 

 

By: srini - kapsljava

RE: subreport help!!!

2004-03-15 00:23

hi David,

 

No I didn't used that, can u please give me some examples for datasourceexpression, and tell me how to set the datasourceexpression, can u please give me examples..

 

Thanks

From

srinivas

 

 

 

 

By: David Lim - aberrant80

RE: subreport help!!!

2004-03-15 01:14

so... assuming you're using just one single JRDataSource, you'll have this in your main report

 

<subreport...>

...

<dataSourceExpression>

$P{REPORT_DATA_SOURCE}

</dataSourceExpression>

...

</subreport>

 

then in your subreport, you don't have to bother with any data source stuff, just make sure you have all the fields probably declared.

 

 

 

 

By: srini - kapsljava

RE: subreport help!!!

2004-03-15 02:43

Thanks David,

now i understand the stuff, its only alteration we have to do is in Master report. ok i will try with this one.

 

Thanking you

Srinivas

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