Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Using data set in scripted data set
Using data set in scripted data set [message #467853] Mon, 03 August 2009 08:10 Go to next message
Marco Aust is currently offline Marco AustFriend
Messages: 1
Registered: August 2009
Junior Member
Hi,
I do have a data set, which is querying the database and want to use the results in another scripted data source. Is there a way to call the first data set from within the script (JavaScript)?

Regards,
Marco
Re: Using data set in scripted data set [message #468010 is a reply to message #467853] Mon, 03 August 2009 15:16 Go to previous message
John Ward is currently offline John WardFriend
Messages: 16
Registered: July 2009
Junior Member
Not exactly. But there is a workaround. I just did something for a
client where we populated a Java collection with the results of the
dataset, and created a scripted data source that utilized that collection.

You can also go the long way and create a ODA type that takes a JDBC
resultset as an option, and then you can re-use the resultset. I think
the COllection route is better though since you dont have to worry about
managing cursors or any such nonsense.

I can't post the example, but if you need, send me an email and I can
give you a POC.

John

Marco Aust wrote:
> Hi,
> I do have a data set, which is querying the database and want to use the
> results in another scripted data source. Is there a way to call the
> first data set from within the script (JavaScript)?
>
> Regards,
> Marco
Previous Topic:How to draw custom figure at data coordinates
Next Topic:Plugin available for RTF generation?
Goto Forum:
  


Current Time: Thu Apr 25 19:14:19 GMT 2024

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

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

Back to the top