Skip to main content



      Home
Home » Archived » BIRT » How To Access Existing DataSet from Java?
How To Access Existing DataSet from Java? [message #253887] Wed, 29 August 2007 15:37 Go to next message
Eclipse UserFriend
Hi,

I'm trying to access an existing DataSet from a Java beforeOpen event
extension. I want to be able to add filters programmatically to a
dataset. So I need to get a DataSetHandle. This is where I'm having trouble.

I'm able to get a DesignElementHandle
DesignElementHandle designHandle =
reportContext.getReportRunnable().getDesignHandle();
But I don't know what I need to do next to get the DataSetHandle

If anyone has any advice, please let me know

Thanks
Re: How To Access Existing DataSet from Java? [message #253892 is a reply to message #253887] Wed, 29 August 2007 15:46 Go to previous messageGo to next message
Eclipse UserFriend
I knew this was going to happen as soon as I hit sent :)
The code would go something like

DataSetHandle dataSetHandle =
reportContext.getReportRunnable().getDesignHandle().getModul eHandle().findDataSet(dataSet.getName());

Raishad wrote:
> Hi,
>
> I'm trying to access an existing DataSet from a Java beforeOpen event
> extension. I want to be able to add filters programmatically to a
> dataset. So I need to get a DataSetHandle. This is where I'm having
> trouble.
>
> I'm able to get a DesignElementHandle
> DesignElementHandle designHandle =
> reportContext.getReportRunnable().getDesignHandle();
> But I don't know what I need to do next to get the DataSetHandle
>
> If anyone has any advice, please let me know
>
> Thanks
Re: How To Access Existing DataSet from Java? [message #691046 is a reply to message #253892] Thu, 30 June 2011 11:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi ,

Have you figured out how we can access data( records/row) From the Dataset using java?

Please let me know if you have done it.

Thanks
M
(no subject) [message #691065 is a reply to message #691046] Thu, 30 June 2011 12:04 Go to previous message
Eclipse UserFriend
Do you mean Java Event handler or an external Java program.

Jason

On 6/30/2011 11:39 AM, M P wrote:
> Hi ,
>
> Have you figured out how we can access data( records/row) From the
> Dataset using java?
>
> Please let me know if you have done it.
>
> Thanks
> M
Previous Topic:Data Source for MS Access database
Next Topic:BIRT Chart interactivity - drilldown from x-axis label
Goto Forum:
  


Current Time: Fri Jul 18 02:05:29 EDT 2025

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

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

Back to the top