Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Display used DB
Migrateduser
Hey folks,<br />
<br />
I'm going to use my reports on enviroments prod and dev. I've created 2 connection profiles with different odaurls but with the same name, calling them with a relative path in my datasource. I want my reports to automatically use the database, which belongs to the enviroment where the report is deployed. <br />
<br />
I'm using the following script in a Dataelemnt to display the used database:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
report = reportContext.getDesignHandle();
dsHandle = report.findDataSource("CashNew");
dsHandle.getProperty("odaURL");
</pre>
<br />
Because of some differences in the DBs i can see the datasource is using the right odaurls. But the script returns the wrong odaURL. I don't use the Property Binding Section! I had some issues and basically its works like this as well.<br />
<br />
In BIRT-Designer I tested by changing the given odaurl in the connection profile by hand and after running the report. The changes apply, but it still displays the url i used before. If I open&close the datasource properties before running the reports everything is going well.<br />
<br />
Can i do any changes to the script to display the correct url? why it doesn't work this way?<br />
<br />
Thanking you in anticipation<br />
Keno
Find more posts tagged with
Comments
There are no comments yet