Skip to main content



      Home
Home » Archived » BIRT » Locale set via report parameter
Locale set via report parameter [message #247720] Thu, 12 July 2007 16:21 Go to next message
Eclipse UserFriend
Originally posted by: fabinader.gmail.com

Hi all,

Is there a way to allow the user to set the locale of the report on the
report parameter screen? I mean, I tried and it didn't passed my first
test. The test was: to create a parameter named __locale, set it as hidden
and put the default locale as pt_BR. When I previewed the report it was
not translated, and if I put the parameter explicitely on the URL for
WebViewer it is translated. In other words, does anybody knows if this
approach works?

Regards,

Fuad Abinader
Re: Locale set via report parameter [message #247832 is a reply to message #247720] Fri, 13 July 2007 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Fuad,

__locale is already a predefined parameter for the viewer.
To test this set the default locale in your designer options to say
Germany. Add a date field or just create a blank report that has the
date at the bottom. Set the preview options to use an external browser
and run the report. In the url change the __locale parameter to
&__locale=en_US&__overwrite=true.

You should see the date change format.

Jason

Fuad Abinader wrote:
> Hi all,
>
> Is there a way to allow the user to set the locale of the report on
> the report parameter screen? I mean, I tried and it didn't passed my
> first test. The test was: to create a parameter named __locale, set it
> as hidden and put the default locale as pt_BR. When I previewed the
> report it was not translated, and if I put the parameter explicitely on
> the URL for WebViewer it is translated. In other words, does anybody
> knows if this approach works?
>
> Regards,
>
> Fuad Abinader
>
Re: Locale set via report parameter [message #247837 is a reply to message #247832] Fri, 13 July 2007 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fabinader.gmail.com

Hi Jason,

The point is that I do not want to set it at the URL, I want to allow
the user to set it on the report parameter UI, together with the other
report parameters. In order to do that, I've created a report parameter
named __locale, and set it to pr_BR, but it didn't localized my report. If
I put __locale excplicitelly on the URL, it works. Somehow I'm realizing
that these special report parameters like __format and __report cannot be
set at design time. Am I wrong?

Regards,

Fuad Abinader
Re: Locale set via report parameter [message #247856 is a reply to message #247837] Fri, 13 July 2007 13:16 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Faud,

You are correct.

Jason

Fuad Abinader wrote:
> Hi Jason,
>
> The point is that I do not want to set it at the URL, I want to allow
> the user to set it on the report parameter UI, together with the other
> report parameters. In order to do that, I've created a report parameter
> named __locale, and set it to pr_BR, but it didn't localized my report.
> If I put __locale excplicitelly on the URL, it works. Somehow I'm
> realizing that these special report parameters like __format and
> __report cannot be set at design time. Am I wrong?
>
> Regards,
>
> Fuad Abinader
>
Previous Topic:XML Emitter
Next Topic:Java class location for a scripted data source
Goto Forum:
  


Current Time: Sun Jul 13 14:26:43 EDT 2025

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

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

Back to the top