Re: NLS parameters in Oracle Reports

From: Frank van Bortel <fvanbortel_at_netscape.net>
Date: Mon, 14 Mar 2005 21:33:49 +0100
Message-ID: <d14sad$l8k$1_at_news1.zwoll1.ov.home.nl>


joet11_at_comcast.net wrote:
> Hi;
>
> The Oracle documentation seems to be saying that if you would like to
> modify language/territory (i.e. NLS) parameters, for a report, at
> runtime, you can issue 'Alter Session' statements in a before report
> trigger.
>
> I have tried several alter session statements in the before report
> trigger but they have no effect on how my data is displayed. Any ideas
> as to what I'm doing wrong? Here is my before trigger:
>
> Thanks - Joe T
>
> function BeforeReport return boolean is
> begin
> SRW.DO_SQL ('ALTER SESSION SET NLS_ISO_CURRENCY = FRANCE');
> SRW.DO_SQL ('ALTER SESSION SET NLS_DATE_LANGUAGE = French');
> SRW.DO_SQL ('ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '',.''');
> SRW.DO_SQL ('ALTER SESSION SET NLS_DATE_FORMAT = ''YYYY MM DD
> HH24:MI:SS''');
> return (TRUE);
> end;
>

I see no problems with the syntax, nor typo's (assuming the date format is wrapped by my reader).
How does it look, how do you want it to look, what versions reports/database?!?

-- 
Regards,
Frank van Bortel
Received on Mon Mar 14 2005 - 21:33:49 CET

Original text of this message