Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Birt plugins Classpath
Birt plugins Classpath [message #194911] Thu, 12 October 2006 10:38 Go to next message
Eclipse UserFriend
Originally posted by: jegd.ctv.es

Hi

I've got to deploy birt as part of my ear insisde an application server. There are different
enviroments, and each one of them has a different path. I wanna use several XML files,
whose directory is part of the classpath of my applicacion, as data sources for my birt reports,
but I cannot use an absolute path to refer them, because this path is different for each
enviroment.

So, I'm trying to modify the XML Data Source so it can be created using a XML file
that is accesible through the classpath of the application calling Birt. My problem is that I need
a way to include this file in the oda.xml and oda.xml.ui plugins classpaths, to make the file
available during the design phase of the report.

Any suggestions would be really appreciatted.
Thanks.
Re: Birt plugins Classpath [message #194951 is a reply to message #194911] Thu, 12 October 2006 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: screek.gmx.de

Hi,

it is probably not the solution you are looking for, but I had the idea to
use a parameter "path" for the report and use property binding for the XML
Data Source File. There you can use javascript to access the path parameter
with params["path"] and construct your path as required. A disadvantage is,
that the javascript expression is only executed at runtime, not in the
design phase and of course you must still provide the parameter with the
path.

I don't know if it helps you, it's only an idea :)


Regards,

Christian

<jegd@ctv.es> wrote in message news:egl5v2$r4v$1@utils.eclipse.org...
> Hi
>
> I've got to deploy birt as part of my ear insisde an application server.
> There are different
> enviroments, and each one of them has a different path. I wanna use
> several XML files,
> whose directory is part of the classpath of my applicacion, as data
> sources for my birt reports,
> but I cannot use an absolute path to refer them, because this path is
> different for each
> enviroment.
>
> So, I'm trying to modify the XML Data Source so it can be created using a
> XML file
> that is accesible through the classpath of the application calling Birt.
> My problem is that I need
> a way to include this file in the oda.xml and oda.xml.ui plugins
> classpaths, to make the file
> available during the design phase of the report.
>
> Any suggestions would be really appreciatted.
> Thanks.
>
>
Re: Birt plugins Classpath [message #195023 is a reply to message #194951] Thu, 12 October 2006 14:22 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Christian's idea is probably the best way.
You could also do this in script and make a Java call to retrieve the path
or environment variable.
Using this approach would not require a parameter.

Jason

"Christian Eckert" <screek@gmx.de> wrote in message
news:eglf6a$ict$1@utils.eclipse.org...
> Hi,
>
> it is probably not the solution you are looking for, but I had the idea to
> use a parameter "path" for the report and use property binding for the XML
> Data Source File. There you can use javascript to access the path
> parameter with params["path"] and construct your path as required. A
> disadvantage is, that the javascript expression is only executed at
> runtime, not in the design phase and of course you must still provide the
> parameter with the path.
>
> I don't know if it helps you, it's only an idea :)
>
>
> Regards,
>
> Christian
>
> <jegd@ctv.es> wrote in message news:egl5v2$r4v$1@utils.eclipse.org...
>> Hi
>>
>> I've got to deploy birt as part of my ear insisde an application server.
>> There are different
>> enviroments, and each one of them has a different path. I wanna use
>> several XML files,
>> whose directory is part of the classpath of my applicacion, as data
>> sources for my birt reports,
>> but I cannot use an absolute path to refer them, because this path is
>> different for each
>> enviroment.
>>
>> So, I'm trying to modify the XML Data Source so it can be created using a
>> XML file
>> that is accesible through the classpath of the application calling Birt.
>> My problem is that I need
>> a way to include this file in the oda.xml and oda.xml.ui plugins
>> classpaths, to make the file
>> available during the design phase of the report.
>>
>> Any suggestions would be really appreciatted.
>> Thanks.
>>
>>
>
>
Previous Topic:A few different questions
Next Topic:SVG format Chart Support Chinese fonts or not?
Goto Forum:
  


Current Time: Fri Apr 26 16:23:45 GMT 2024

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

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

Back to the top