Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsBirt plugins Classpath
https://www.eclipse.org/forums/index.php/mv/msg/61788/194911/#msg_194911
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.]]>2006-10-12T10:38:27-00:00Re: Birt plugins Classpath
https://www.eclipse.org/forums/index.php/mv/msg/61788/194951/#msg_194951
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.
>
>]]>2006-10-12T13:15:24-00:00Re: Birt plugins Classpath
https://www.eclipse.org/forums/index.php/mv/msg/61788/195023/#msg_195023
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.
>>
>>
>
>]]>Jason Weathersby2006-10-12T14:22:41-00:00