Jump to content

Make connection expression


JulEgner

Recommended Posts

I found out that it is possible to set a connection expression for subreports that does not have to be the connection expression of the main report.

But how do i make a new connection expression? I even cannot read the connection expression of the main report because iReport does not let me.

Maybe I only need to know the syntax of a Report Connection.

 

I need this Information because this seems a way to have more than one Datasource in a Report. I have to use several Databases and if I do not find a way to do this with iReport, or a simple Way to put everything in one Database, I may be forced to use Crystal Reports. I would prefer to stay using iReport.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Report connection: java.sql.Connection

Report datasource: net.sf.jasperreports.engine.JRDataSource

 

Ok those are the classes to be used in each case.

 

An example will be more than welcomed since I have no experience with the report datasource.

 

In the SubReport's Properties/SubReport Connection / Datasource Expression- Use datasource expression it creates a default $P{MyDataource}. I proceeded to create the $P{MyDataource} parameter, but what I write in? WHat's the format? Any example?

Post edited by: javydreamercsw, at: 2006/08/21 12:05

Link to comment
Share on other sites

  • 15 years later...

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