Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » A report to run on multiple DBs
A report to run on multiple DBs [message #498528] Tue, 17 November 2009 10:53 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 94
Registered: November 2009
Member
Hi,
If I support a number of databases (three in total) and I want to write an identical report to run on each one, what is the best way to do this?

1) Create 3 independent reports with one datasource and dataset in each. Create chars/crosstab from the dataset columns. [Alot of repeated work as doing this 3 times]
2) Create 1 report with 3 datasources and 3 datasets. However, as the chart/crosstab are tied to a dataset, is this even possible?
3) Other?

thanks for any input
Re: A report to run on multiple DBs [message #498610 is a reply to message #498528] Tue, 17 November 2009 16:30 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Trevor,

If the dbs all return the same columns you could write one and change
the dburl in the before open script of the datasource or use property
binding. You could add a parameter to decide which db. Another option
is to put all three in and reassign the dataset for reportItems in the
beforeFactory event.

To swap the dataset just use code like:
mytable = reportContext.getDesignHandle().findElement("mytable");
mytable.setProperty( "dataSet", "SecondDataSet" );
The table has to be named in the general properties.

For property binding you could add a dburl parameter and put this in the
for the jdbc url under the property binding tree item in the data source
editor

params["dburl"].value

Jason


TREVOR.HIGGINS@FINEOS.COM wrote:
> Hi,
> If I support a number of databases (three in total) and I want to write
> an identical report to run on each one, what is the best way to do this?
>
> 1) Create 3 independent reports with one datasource and dataset in each.
> Create chars/crosstab from the dataset columns. [Alot of repeated work
> as doing this 3 times]
> 2) Create 1 report with 3 datasources and 3 datasets. However, as the
> chart/crosstab are tied to a dataset, is this even possible?
> 3) Other?
>
> thanks for any input
Previous Topic:Tribix RTF emitter for BIRT 2.5.1 - 'Total Page' auto text not working
Next Topic:Localization - Using Multiple Resource Bundles for reports - BIRT 2.5.1
Goto Forum:
  


Current Time: Wed Apr 24 20:24:20 GMT 2024

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

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

Back to the top