[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: Change library Datasource URL at runtime

Anthony,

I tried this with BIRT 2.3.1 and it worked for me. Do you have the parameter and the ds in the library and did you set the property binding in the lib?

Jason

Anthony wrote:
Changing a datasource URL at runtime is trivial using property binding and report parameters (e.g. params["runtimeURL"].value). However this doesn't seem to work when the datasource is in a library - the parameters are ignored, and the defaults are used. So I have two questions

1) How can I change the JDBC driver URL of a datasource once the report is loaded as IReportRunable? Or can I only do it by creating a new datasource and updating all the datasets to reference it?

2) Is there a way to get this to work with property binding and report parameters? Or is it not possible to use libraries to share datasources that need to be changed at runtime? https://bugs.eclipse.org/bugs/show_bug.cgi?id=154189 makes it look like it's not.