Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Database name
Database name [message #545835] Fri, 09 July 2010 10:52 Go to next message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
Hi,
How can I retrieve the DB name after calling openDesign on SessionHandle
Any help appreciated,
Regards,
Janusz
Re: Database name [message #545923 is a reply to message #545835] Fri, 09 July 2010 15:24 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Janusz,

You could always do something like:
sh = design.getDataSources();
it = sh.iterator();
while( it.hasNext()){
OdaDataSourceHandle de =(OdaDataSourceHandle)it.next();
System.out.println(de.getName());
System.out.println(de.getProperty("odaURL"));
}
And from the oda url you should be able to get the DB name.

Jason

On 7/9/2010 6:53 AM, Janusz Dalecki wrote:
> Hi,
> How can I retrieve the DB name after calling openDesign on SessionHandle
> Any help appreciated,
> Regards,
> Janusz
Previous Topic:Using BIRT for source code metric report
Next Topic:XML Data Source: Where the XML comes from
Goto Forum:
  


Current Time: Fri Apr 26 19:50:16 GMT 2024

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

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

Back to the top