REPORT_CONNECTION

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.
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness