Skip to main content



      Home
Home » Archived » BIRT » Reloading of classes for scripted data sources
Reloading of classes for scripted data sources [message #86453] Wed, 02 November 2005 05:13 Go to next message
Eclipse UserFriend
Hello,

I'm using BIRT 1.0.1.

When I change the code of the java class and then update the class file in
org.eclipse.birt.report.viewer_1.0.1\birt\WEB-INF\classes, how can I force
a reload of that class?

Or do I always have to restart Eclipse?

Is there a different way to specify this class which will automatically be
reloaded when I change it?

Regards,
Re: Reloading of classes for scripted data sources [message #86773 is a reply to message #86453] Thu, 03 November 2005 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Since there is no answer to this one, I guess that's not possible? Is
there already a enhancement request filed for this?

Thanks.
Has scripting environment got access to the local object? [message #86849 is a reply to message #86773] Thu, 03 November 2005 04:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi
I need to localize some columns in my table. At the moment
I'm handing a parameter to the report and use code like this
in the data element:

if (params["lang"] == "de")
{
row["column_de"]
}

if (params["lang"] == "fr")
{
row["column_fr"]
}

Now I had the idea that I don't really need to use a parameter since
the local object has got a method "getLanguage()" which would return
the proper value.
Can this be done?

Cheers, michael
Re: Reloading of classes for scripted data sources [message #86864 is a reply to message #86773] Thu, 03 November 2005 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.n.com

I asked this question the other day. I got pretty much the same response so
I decided to look into it a little (I know they are busy :) ).

I couldn't figure out (real quick) how the viewer was working. It looks
like some sort of web app, but I couldn't see a app server.

The other option is to use Tomcat to preview your reports. That way you can
set the flag to auto reload your jars/classes. BIRT (the plugin piece) can
be setup to use a server to preview the reports. I have not tried it yet,
so I don't know how integrated it is.




"Aaron Digulla" <digulla@hepe.com> wrote in message
news:fbfe814add22d098af76520839d4e7a5$1@www.eclipse.org...
> Hello,
>
> Since there is no answer to this one, I guess that's not possible? Is
> there already a enhancement request filed for this?
>
> Thanks.
>
Re: Has scripting environment got access to the local object? [message #87015 is a reply to message #86849] Thu, 03 November 2005 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Michael Meyer wrote:

> Now I had the idea that I don't really need to use a parameter since
> the local object has got a method "getLanguage()" which would return
> the proper value.

Try:

var locale = Packages.java.util.Locale.getDefault();
Re: Has scripting environment got access to the local object? [message #87030 is a reply to message #87015] Thu, 03 November 2005 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sangria.gmx.net

Hi,
tried it but the result isn't what I expected. getDefault().getLanguage() always
returns the same language and ignorse the language that I tell birt to use. According
to the javadoc this is by design.
I need access to the local that birt uses. Any more ideas?

Greets, michael


Aaron Digulla schrieb:
> Michael Meyer wrote:
>
>> Now I had the idea that I don't really need to use a parameter since
>> the local object has got a method "getLanguage()" which would return
>> the proper value.
>
>
> Try:
>
> var locale = Packages.java.util.Locale.getDefault();
>
>
Re: Has scripting environment got access to the local object? [message #87356 is a reply to message #87030] Fri, 04 November 2005 03:22 Go to previous message
Eclipse UserFriend
Michael Meyer wrote:

> I need access to the local that birt uses. Any more ideas?

Use the source, Luke :-)
Previous Topic:How to set dataset programmatically in Chart dialog at
Next Topic:$NO-RB$ No Context associated with current Thread
Goto Forum:
  


Current Time: Sat May 31 05:22:24 EDT 2025

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

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

Back to the top