Skip to main content



      Home
Home » Archived » BIRT » How do you set up configuration variables or library variables ?
How do you set up configuration variables or library variables ? [message #79932] Fri, 07 October 2005 23:58 Go to next message
Eclipse UserFriend
Originally posted by: felipe.modernmexican.com

The report works fine until I set up the following in web.xml:

<context-param>
<param-name>DB_URL</param-name>
<param-value>jdbc:postgresql://127.0.0.1/db</param-value>
</context-param>

I placed $DB_URL in rep.rptdesign:

<oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc"
name="server">
<property name="odaDriverClass">org.postgresql.Driver</property>

<property name="odaURL">$DB_URL</property>

<property name="odaUser"><value-of>user</value-of></property>
<encrypted-property name="odaPassword">psw</encrypted-property>
</oda-data-source>

How do you set up configuration variables or library variables ?
Re: How do you set up configuration variables or library variables ? [message #81586 is a reply to message #79932] Mon, 17 October 2005 15:56 Go to previous message
Eclipse UserFriend
Felipe,
Have you tried something like this?
Put this code in the beforeOpen script in the data source.

dburltest = Packages.java.lang.System.getenv("DB_URL");
extensionProperties.odaURL = dburltest + "";

This will not read it from the context, but if you set it in the system
environment variables it should read it.

Jason Weathersby
BIRT PMC


"Felipe" <felipe@modernmexican.com> wrote in message
news:di7g52$huc$1@news.eclipse.org...
> The report works fine until I set up the following in web.xml:
>
> <context-param>
> <param-name>DB_URL</param-name>
> <param-value>jdbc:postgresql://127.0.0.1/db</param-value>
> </context-param>
>
> I placed $DB_URL in rep.rptdesign:
>
> <oda-data-source
> extensionID="org.eclipse.birt.report.data.oda.jdbc" name="server">
> <property
> name="odaDriverClass">org.postgresql.Driver</property>
>
> <property name="odaURL">$DB_URL</property>
>
> <property name="odaUser"><value-of>user</value-of></property>
> <encrypted-property name="odaPassword">psw</encrypted-property>
> </oda-data-source>
>
> How do you set up configuration variables or library variables ?
>
>
Previous Topic:Embedded images in mail attachment(HTML report)
Next Topic:Cvs Birt repository but it was not a succes
Goto Forum:
  


Current Time: Sat Jul 12 11:52:50 EDT 2025

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

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

Back to the top