Jump to content
Changes to the Jaspersoft community edition download ×

problem in passing datasource to sub report


2004 IR Help

Recommended Posts

By: SANTHANA GOPALAN - santhana_g

problem in passing datasource to sub report

2005-01-11 03:14

I got problem in using subreports.

 

 

I need two tables to be displayed in my report.

 

I that possible without using sub reports.

 

If I must use subreport.

How to pass parameter to the sub report?

How to pass data for subreport (without using jdbc connection)?

 

 

 

 

 

 

By: Balu - bala-os

RE: problem in passing datasource to sub repo

2005-01-11 05:51

Hi

 

Can u plz tell me how to pass data source to main

report ?

 

Regards

Bala

 

 

 

 

 

By: Teodor Danciu - teodord

RE: problem in passing datasource to sub repo

2005-01-11 08:34

 

Hi,

 

If you have to tables that run independently from

one another, you need subreports.

If it is about a join between these two, then it probably

boils down to data grouping.

 

When using subreports, you either have the SQL

query inside the subreport template and you pass

to the subreport the JDBC connection using the

<connectionExpression> tag, or you could pass

a JRDataSource object directly using the

<dataSourceExpression> tag.

 

Check the quick reference for details and the

provided "subreport" sample.

 

Thank you,

Teodor

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