Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAccess dataset parameters in java EventHandler
https://www.eclipse.org/forums/index.php/mv/msg/70533/220664/#msg_220664
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]]>2007-02-23T09:55:36-00:00Re: Access dataset parameters in java EventHandler
https://www.eclipse.org/forums/index.php/mv/msg/70533/221210/#msg_221210
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]]>Jason Weathersby2007-02-26T19:17:50-00:00