Jump to content
JasperReports Library 7.0 is now available ×

Data sources problem...urgent pls help


Recommended Posts

By: JInish Abraham - jinish

Data sources problem...urgent pls help

2003-10-16 22:47

I am generating a report with 2 sub reports. I have to take data into the two subreports using two different data sources. In the <dataSourceExpression> I have mentioned the parameter from which I have to take the Datasource. I am passing it as a Map containing this Parameter Name and the Custom Data sourec object. But when I fill the report, I have to pass a thrid parameter. I don't know what to pass. Here is my statements.

 

Map parameters = new HashMap();

 

parameters.put("ProductsSubreport", subreport);

 

JasperFillManager.fillReportToFile(fileName, parameters, null);

 

What should I pass in place of null???

 

 

 

 

By: dandotkar shashikanth - dshashikanth

RE: Data sources problem...urgent pls help

2003-10-17 04:59

try using JasperManager.fillReport...

instead of JasperFillManager.fill.....

cheers

shashi

 

 

 

 

By: JInish Abraham - jinish

RE: Data sources problem...urgent pls help

2003-10-17 05:03

I cant see a method in Jasper Manager, that takes only 2 parameters to fill a report

 

 

 

 

By: dandotkar shashikanth - dshashikanth

RE: Data sources problem...urgent pls help

2003-10-23 16:31

the third parameter is datasource..which shud not be null...

if it is null then from where ...the data for your tables come...?

even u fill them from other ways..it will not

fill the tables which filling a report.

the best way is to debug the code and see when the datasource class is called....

iam sure the data for ur table shud alwys come from the datasource of ur report.

shashi

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