Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Data sources (How to change connection to DB)
Data sources [message #523962] Tue, 30 March 2010 04:45 Go to next message
moloco  is currently offline moloco Friend
Messages: 7
Registered: March 2010
Junior Member
Sorry for may bad En Embarrassed

Situation :

We have several DB servers (mirrors) and one tomcat
instance with BIRT. How we can select datasource in BIRT
on the fly?
What the best point in BIRT engine to insert code for this?

Re: Data sources [message #524414 is a reply to message #523962] Wed, 31 March 2010 20:24 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You should be able to use script or property binding for this.
In the beforeOpen you could do this:

this.setExtensionProperty("odaURL","jdbc:mysql://localhost/mysql");
if you pass in the db url as a parameter
this.setExtensionProperty("odaURL",params["mydburlparameter "].value);
You can also set the value the value in property binding in the
datasource editor to params["mydburlparameter"].value;

Jason

moloco wrote:
> Sorry for may bad En :blush:
> Situation :
>
> We have several DB servers (mirrors) and one tomcat
> instance with BIRT. How we can select datasource in BIRT
> on the fly? What the best point in BIRT engine to insert code for this?
>
>
Previous Topic:BIRT Scripted Data Source Question
Next Topic:platform startup and shutdown
Goto Forum:
  


Current Time: Tue Sep 24 20:19:23 GMT 2024

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

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

Back to the top