Access dataset parameters in java EventHandler [message #220664] |
Fri, 23 February 2007 09:55 |
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02523 seconds