Skip to main content



      Home
Home » Archived » BIRT » How to change ODA Data Source 'Connection &Profile Name' at runtime?(ODA Data Source properties)
How to change ODA Data Source 'Connection &Profile Name' at runtime? [message #1004749] Wed, 23 January 2013 14:56
Eclipse UserFriend
Hi

In my Connection Profile Store I have 3 JDBC connections defined (DEV/QA/PROD), all residing within the same connection profile store.

The ODA Data Source property 'Connection &Profile Name' changes as I select either the DEV, QA or PROD JDBC connections in the the Designer. This is fine, and allows me to easily switch environments during report development.

I notice in the Data Source Explorer there are also 'Common Properties' that can be user-defined for each JDBC Data Source.

A couple of questions:

1. How do I set the datasource 'Connection &Profile Name' property programmatically, for example in the 'Before Open' script for the data source? Note that I do not want multiple connection profile stores; I want just one connection profile for as many of the DEV/QA/PROD environments I use.

2. How can I programmatically access the Name or Description properties from the Common Properties? I'd like to print the values in the report header, so folks will know where their data are sourced from when reading the report.

Thanks!
Brian



Previous Topic:aggregation doesn't work
Next Topic:Display character limit + Freeze header on table
Goto Forum:
  


Current Time: Fri Mar 21 17:21:07 EDT 2025

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

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

Back to the top