Skip to main content



      Home
Home » Archived » BIRT » How to change the 'extensionID' of a datasource at runtime ?
How to change the 'extensionID' of a datasource at runtime ? [message #156705] Thu, 27 April 2006 05:36 Go to next message
Eclipse UserFriend
Originally posted by: esteban27.free.fr

I need to change the 'extensionID' of my datasource at runtime (with a
parameter DB_01, or DB_02) in the event 'beforeOpen' of my datasource like
:

if (params["database"]=="DB_01") {
this.setExtensionID("org.eclipse.birt.report.data.oda.jdbc");
}else{
this.setExtensionID("myPackage.jdbc");
}

Someone can help me todo that ?
Re: How to change the 'extensionID' of a datasource at runtime ? [message #157019 is a reply to message #156705] Fri, 28 April 2006 05:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: esteban27.free.fr

Nobody ?
Re: How to change the 'extensionID' of a datasource at runtime ? [message #159271 is a reply to message #156705] Tue, 09 May 2006 02:29 Go to previous messageGo to next message
Eclipse UserFriend
A data source's extentionID is a read-only property. You cannot change it at
runtime.

--
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"Stephane" <esteban27@free.fr> wrote in message
news:93398b5a6320ebc584caedc508e2851d$1@www.eclipse.org...
> I need to change the 'extensionID' of my datasource at runtime (with a
> parameter DB_01, or DB_02) in the event 'beforeOpen' of my datasource like
> :
>
> if (params["database"]=="DB_01") {
> this.setExtensionID("org.eclipse.birt.report.data.oda.jdbc");
> }else{
> this.setExtensionID("myPackage.jdbc");
> }
>
> Someone can help me todo that ?
>
Re: How to change the 'extensionID' of a datasource at runtime ? [message #159759 is a reply to message #159271] Wed, 10 May 2006 09:25 Go to previous message
Eclipse UserFriend
Originally posted by: esteban27.free.fr

Thanks Gary Xue
Stephane
Previous Topic:prob html(image)
Next Topic:execute report via engine api ,but I get a java.lang.NoSuchMethodError,why? :(
Goto Forum:
  


Current Time: Sun Jun 22 03:27:19 EDT 2025

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

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

Back to the top