Jump to content
We've recently updated our Privacy Statement, available here ×

Is Connection available to Scriptlets?


2005 IR Help

Recommended Posts

By: Mike Warne - mwarne

Is Connection available to Scriptlets?

2004-07-22 13:47

Hi I would like to have the report connection available to my Scriptlet. At report init time, I need to do a query and save some data in memory for use later by the Scriptlet. Is there a way for me to get the Connection object from the report?

 

Thanks,

Mike.

 

 

 

 

 

By: Mykel Alvis - evilarchitect

RE: Is Connection available to Scriptlets?

2004-07-22 14:48

REPORT_CONNECTION is available at runtime if and only if you supplied a connection when you did the fill.

 

REPORT_DATASOURCE is always available, no matter what. It's type is dori.jasper.engine.JRDataSource

 

You should have no trouble accessing those from the Scriptlet using this.getParameterValue

 

 

 

 

 

 

By: Mike Warne - mwarne

RE: Is Connection available to Scriptlets?

2004-07-22 15:49

Thanks,

Is REPORT_CONNECTION a Variable, Parameter or what?

Thanks.

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