Jump to content
Changes to the Jaspersoft community edition download ×

REPORT_CONNECTION


Recommended Posts

By: Gabriel - acharat

REPORT_CONNECTION

2002-10-04 10:58

Hi Teodor,

 

Can you explain the built-in system parameter REPORT_CONNECTION ?

 

...

<connectionExpression>

$P{REPORT_CONNECTION}

</connectionExpression>

...

 

Thank you,

Acharat

 

 

 

By: Teodor Danciu - teodord

RE: REPORT_CONNECTION

2002-10-09 01:20

 

Hi,

 

When you supply a java.sql.Connection object instead

of a dori.jasper.engine.JRDataSource object, at report

filling time, the engine keeps a reference to this connection

object in the parameter called REPORT_CONNECTION.

 

This could be useful when passing further the connection

to the subreports.

 

There is also the REPORT_DATASOURCE parameter

which points to the JRDataSource object received or

created behind the scenes after the execution of the SQL

query.

 

And the REPORT_PARAMETERS_MAP which points

to the received java.util.Map object containig the

parameters values supplied when filling the report.

 

Good luck!

Teodor

 

 

 

By: Tam Nguyen Anh - anhtam

RE: REPORT_CONNECTION

2002-10-09 21:39

Hi Teodor,

I would like to know more 'bout your system built-in parameters. I think it's helpful to reduce my effort of creating my own variables in .xml files.

Thanks,

Tam

 

 

By: Teodor Danciu - teodord

RE: REPORT_CONNECTION

2002-10-11 14:07

 

Hi,

 

There is only one more built-in parameter

that I forgot to mention:

REPORT_SCRIPTLET

It holds a reference to the report's scriptlet object

and you can see it being used on the last page

of the "scriptlet" sample.

 

There is really nothing more I could tell you

about the built-in parameters...

There are no such JasperReports big secrets.

:)

 

I hope this helps.

Teodor

 

 

 

By: Victor Amano Izawa - victorsjc

RE: REPORT_CONNECTION

2002-10-22 13:07

Hi,

 

I used this parameter REPORT_DATASOURCE with my xml, but when I compile this file I got the follow message:

 

- Parameter not found REPORT_DATASOURCE.

 

What's the problem?

 

Thanks

 

Victor

 

 

By: Teodor Danciu - teodord

RE: REPORT_CONNECTION

2002-10-22 13:11

 

Hi,

 

Sorry, my mistake...

It's REPORT_DATA_SOURCE.

 

Thank you,

Teodor

 

 

 

By: Victor Amano Izawa - victorsjc

RE: REPORT_CONNECTION

2002-10-23 05:51

Hi,

 

No problem. It's works.

 

Thanks again.

 

Victor

S o Jos  dos Campos - S o Paulo Brazil.

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