Home » Developer & Programmer » Reports & Discoverer » Report dosent work when we format the date in Query ???
icon8.gif  Report dosent work when we format the date in Query ??? [message #222964] Wed, 07 March 2007 01:27
Messages: 13
Registered: February 2007
Junior Member
I am running a report where i am passing a date field (The format is : 07/03/2007)to a table (The column here is of Varchar2(240))from the report interface form.
In the Before Report trigger iam fetching the value in a variable :REP_VALUE_1(Varchar2(240) and formated it back to date.

SRW.MESSAGE(100, :REP_VALUE_1); ==> 07-Mar-07 (Why it comes in this format though we have sent in as 07/0/2007)


SRW.MESSAGE(200, :P_AS_OF_DT); ==> 07-Mar-07 (Why it displays in the same format though we have formatted to DD/MM/YYYY)

Also iam using the date in my INLINE main query. (Function used in a Main Qry)


Now this qry dosent return any value though there are lot many.

If i remove the formatting in the above function then it works well.

But... this is happens for one environment (Customer) whereas the other Customers working well with the same query.

I think some changes has to be done in Server setup to format the date correctly. Pls help me in this....

I tried these things..

select name,value from v$parameter where name='nls_date_format' ==> Value is NULL for this parameter

THEN i tried this....alter session set nls_date_format = 'DD/MM/YYYY'

after this also the select name,value from v$parameter where name='nls_date_format' was showing NULL only.

select parameter, value from nls_session_parameters where parameter = 'NLS_DATE_FORMAT' is giving me DD/MM/YYYY
Previous Topic: pls help
Next Topic: How to open an Oracle Report from a JSF Page
Goto Forum:

Current Time: Sat Aug 19 15:41:54 CDT 2017

Total time taken to generate the page: 0.07080 seconds