Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Access dataset parameters in java EventHandler
Access dataset parameters in java EventHandler [message #220664] Fri, 23 February 2007 09:55 Go to next message
Eclipse User
Originally posted by: nfroment.hi-stor.com

Hi ! I'm a new BIRT user. For my requirements, I need to group data in a
way that BIRT grouping does not enable. So I code a ScriptedDataSet in a
java class using the EventHandler process. My java class need access to
a database, so I want to put database information in a dataset
parameters and then access them in the open method. Is it the good way
to use BIRT ? if yes, how can I access input parameters in a Java Event
Handler ?

Thks in advance for your help.

Nicolas FROMENT
Re: Access dataset parameters in java EventHandler [message #221210 is a reply to message #220664] Mon, 26 February 2007 19:17 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This appears to be a bug. The IDataSetInstance interface should have access
to the dataset parameters.
Can you log a bug for this?

I know you can access from script, it just appears there is an issue with
the Java Interface.
As a work around you can define a report parameter, link it to your data set
parameter. Then add a beforeOpen call to your eventhandler.
It should have access to the reportcontext which will give you access to the
report parameter.

Jason

"Nicolas FROMENT" <nfroment@hi-stor.com> wrote in message
news:ermdmt$3s3$1@utils.eclipse.org...
>
> Hi ! I'm a new BIRT user. For my requirements, I need to group data in a
> way that BIRT grouping does not enable. So I code a ScriptedDataSet in a
> java class using the EventHandler process. My java class need access to a
> database, so I want to put database information in a dataset parameters
> and then access them in the open method. Is it the good way to use BIRT ?
> if yes, how can I access input parameters in a Java Event Handler ?
>
> Thks in advance for your help.
>
> Nicolas FROMENT
Previous Topic:how can I start a report from java
Next Topic:Parameter binding
Goto Forum:
  


Current Time: Thu Oct 30 18:59:51 GMT 2014

Powered by FUDForum. Page generated in 0.01692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software