Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to transform/merge Data Sets with script?
How to transform/merge Data Sets with script? [message #53746] Tue, 05 July 2005 23:50 Go to next message
Eclipse UserFriend
Originally posted by: none.none.none

Here is an example of what I need to be able to do, but I can't seem to
figure where to begin in BIRT.

Let's say I have two tables, each with a date column. I want to display the
columns from both of these tables in a single report table (joined by date).
For various reasons, I can't perform this join in SQL, so I want to create a
script that will essentially take these two recordsets (a query for each
table), join them based on date and return a single Data Set for BIRT to use
in the display. It gets a little more complicated, because I want to
display data based on a date range, regardless of what data is avaiable.
For example, my date column would show dates of June 1 through June 15. But
each table that it's drawing from may not have a value for each of these
days.... maybe Table A will have data for June 5 - June 10 and Table B have
data June 8 - June 13... etc. So I want it to look something like...

DATE TABLE_A.COLUMN_1 TABLE_B.COLUMN1
-------- -------------------------- ------------------------
June 1
June 2
June 3
June 4
June 5 a
June 6 b
June 7 c
June 8 d 1
June 9 e 2
June 10 f 3
June 11 4
June 12 5
June 13 6
June 14
June 15

I'm not looking for somebody to write the script for me, but I'm just trying
to illustrate why I need to access multiple datasets (tables) from a script
and return a 'new' one.

Any ideas on where to begin?

Thanks!
Re: How to transform/merge Data Sets with script? [message #54516 is a reply to message #53746] Wed, 06 July 2005 19:22 Go to previous message
Eclipse UserFriend
Originally posted by: none.none.none

Looks like the answer is somewhat here...
http://tools.osmosis.gr/blog/archives/2005/06/birt_and_objec t.html

This explains to create my own custom dataset. I was hoping that I could
'reuse' and manage the orginating datasets defined in BIRT and then just
merge/modify them accordingly in my Java code... but I don't see how to get
a reference to them to pass the BIRT dataset results to a POJO. Is this
possible?
Previous Topic:parameter marker not possible on a computed column?
Next Topic:Computed Column on Linked Table?
Goto Forum:
  


Current Time: Thu Nov 21 11:58:57 GMT 2024

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

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

Back to the top