Date format is changing in presentation variable

Hello,
I have a problem with date stored in presentation variable.
I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
I have simple report with title to show the content of variable PP_DATE.
And now the problem.
When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
Do you have some tips?
Thank you

Kishore Guggilla wrote:
Hey,
you are talking about so many pieces here seems..
first letz break down your issues list..
1. error, this is because of default date(using repository variable) used in prompt..
2. using presentation variables in timetampdiff functions..
3. showing variable in title list..
we'll go through each issue..
because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
"1. error, this is because of default date(using repository variable) used in prompt.. "
I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
And now it seems to be working now.
I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

Similar Messages

  • Date format problem - dashboard prompt - presentation variable

    Hi,
    I've created a dashboard prompt on a date and defined a presentation variable.
    In my report I make use of the following object : TimeStampAdd(SQL_TSI_MONTH,-12,date '@{pv_afw_start_date}' )
    My report works when making use of a drop down list, but when I want to make use of a calendar to select from, I receive the following error
    *A general error has occurred. [nQSError: 46047] Datetime value 17/11/2009 from 17/11/2009 does not match the specified format. (HY000)*
    Is there a difference in the date formats used by the prompt type (drop down list, calendar, ..)? And how you can align them..
    Txs for your help.
    Kr
    A

    Timestampadd ask for a timestamp not for a date.
    Check here :
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_SQL14.html
    The syntax is :
    TimestampAdd(SQL_TSI_DAY, 3, TIMESTAMP '2000-02-27 14:30:00')You may have to change your prompt to retrieve a timestamp.
    Where do you use your formula ? In a formula column ?

  • Dates Format in Promts using Session Variables

    Hi Experts,
    I have an issue in controlling date format in prompts using session variable which I am using to set default value.
    By default date format is timestamp E.g '2010-12-19 12:00:00 AM'.
    As per requriement(s) I customized the date format in Reports as 19-Dec-2010 and I saved it as "System Wide Default for <Date Column Name> "
    So, I got desired format in Reports and Date Prompts.
    Now, I need to set a default value in Date Prompt. So, in RPD I created a Session Variable which returned me date in
    DD-MON-YYYY format. Using follwing SQL :
    SELECT REPLACE(CONVERT(VARCHAR(11), Getdate (), 106), ' ', '-') AS [DD-Mon-YYYY]
    But in reports takes this value as string and not Datetime. So i got an error message.
    A datetime value was expected (received "19-Dec-2010").
    If i do not use above SQL to CONVERT date then default date in prompt get displayed as timestamp format and give me desired results but Formatting looks very odd in prompt
    Is this a way so I can persist the [DD-Mon-YYYY] Formatting for default value which comes using variable and still run the report.
    Above problem also exist vice versa that is if i SET that session variable and pass the datetime value to server. But there i guess I can use ToDate or some Casting in RPD column expression to handle that. Tell me if i am right ?
    Thanks
    Saurabh

    That almost works. I had to adjust the syntax to the following...and then there are other issues doing this.
    select cust_no, name,'@{session.currentUser}' from customersMy write-back SQL is this:
    UPDATE customers SET NAME='@{c1}',LAST_EDITED_BY='@{c2}' WHERE CUST_NO=@{c0}But I don't want to display the cust_no column to the user. So I hide it in the UI. But if I do that I get the below error during write-back. Apparently sometimes when you hide a column on a direct query (numeric maybe?) the value doesn't transfer over to the write-back. If that's the case, this won't work for me. Hmm...
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute: UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= . [nQSError: 17011] SQL statement execution failed. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL dev1 UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO=

  • OBIEE 10 - Is Possible change the Presentation Variable without GO BUTTON ?

    OBIEE 10:
    Is Possible change the Presentation Variable only changing the Value on the prompt ??
    Or the presentation variable only change if click on "GO BUTTON" ????
    Thanks.

    You need to click the "Go" button. That is what sets the variable.

  • Calendar Control Date Format intermittently Changing

    I've noticed that every once in a while the Calendar Date format temporarily changes from DD/MM/YYYY to MM/DD/YYYY
    This is very problematic for me. Is there a place i can specify this so that it never changes?

    Resolved by changing Default value SQL to:
    SELECT EVALUATE('REPLACE(TRIM(leading 0 from TO_CHAR(%1,%2)),%3,%4) ' as varchar(20),MIN("- Dim_Date".DATE_VALUE),'MM/DD/YYYY','/0','/') FROM PRS
    This displays the default date in format 1/1/2009, the same format shown when choosing a different date from the calendar control.

  • How do I stop the date format from changing to US format?

    I have an excel doc that I've converted to pdf.  In the process the date format changed to mm/dd/yyyy.  How do I stop this from happening?

    Hello,
    In a earlier attempt I marked all the date entries and labeled them as such (see screenshot of my German Excel):
    After that I converted the file by help of Excel(!) and I got this pdf file, which had all the entries formatted as produced in Excel before.
    Hans-Günter

  • Can date format be changed at runtime in patterLayout(log4J)

    Hi,
    I would like to know if the date format can be changed at runtime when i am using pattern layout. My application can have a particular date format. How do i specify that for the %d specifier in pattern layout, as i will only know the format at runtime.
    anjali

    Hello Mike,
    If your location is equivalent to the parsing schema you can use the APEX built-in substitution string *#OWNER#*.
    You still need to resort to Peter’s advices where dynamic table names are concerned. Bear in mind that in this case, you won’t be able to use the APEX built-in DML processes, and you’ll need to write your own fetch/insert/update/delete processes, which might be a lot of work. Working in a multi-user environment adds the complexity factor of concurrency control (lost updates).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Changing date format (find/change?)

    Hello, I have little bit tricky question.
    I have document full of dates:
    01.01.2013
    02.01.2013
    05.01.2013
    And i want to change all these dates just to:
    01. Mon
    02. Tue
    05. Fri
    Is there a possibility to do that within Indesign? Thank you for your answers.

    OrcusDei wrote:
    Sandee, you got it exactly right. That's very unfortunate. It's pretty simple data formating and i'm surprised InDesign can't nativly do that O_O
    InDesign is not a data formating tool - nor is it a word processor. It's a layout tool for creating print/web ready documentation.
    It can do a lot of things - but it can't reformat your data.
    I would have done the same as you did - but I would have added a blank character style(create a char style based on None and don't select any options) to the numbers and created an index.
    http://www.kahrel.plus.com/indesign/index_charstyles.html
    Brought that to Excel and converted the text to the way it was supposed.
    Then prepare the "FindChangebyList" in the scripts panel.
    http://indesignsecrets.com/find-change-scripting-goodness.php

  • Date Format issue in my report.

    Hello Experts-
    I created a report with a date prompt, which we need to enter two dates, start date and end date.
    I followed the steps as they were in this link
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    I changed the condition in the prompt to Date'1900-1-1' instead of TIMESTAMP'1900-1-1- 00:00:00
    I.e.,
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date' 1900-01-01' END
    and
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date '2999-12-31' END
    I stored those two dates in two presentation variables start_date, end_date
    In my report, I imposed a filter on my table that, date coulmn in my table is between Date'@(start_date}' and Date'@{end_date}'
    But when I am running the report with entering two dates, I am getting this error:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 12/1/2010 does not match the specified format. (HY000)*
    I entered 12/01/2010 as start date and 12/02/2010 as end_date
    Can you please guide me in this issue.

    I think your date format is in different format with the date format u stored in presentation variable so better check the date format of the case function u wrote it in you variable that will solve the problem.

  • Presentation Variable Optional Format Mask

    Hi,
    On page 45 of the Answers documentation at
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    It says that you can specify an optional format mask for a presentation variable:
    ##Start Of Extract##
    @{variables.<variableName>}{<value>}\[format] - for presentation variables
    For example, @{variables.myFavoriteRegion}{Central} - inserts the value of the
    presentation variable myFavoriteRegion.
    ❏ variables - prefix that is required when you reference a presentation variable in a request.
    ❏ variableName - a reference to an object available in the current evaluation context. For example: @{variables.myFavoriteRegion}.
    ❏ value - (optional) - a constant or variable reference indicating a value to be used if the variable referenced by the variableName isn't populated (is undefined).
    ❏ format - (optional) - a format mask dependent on the data type of the variable. For example: #,##0, MM/DD/YY hh:mm:ss, and so on.
    ##End Of Extract##
    Has anyone got this optional format mask to work? I've tried things like:
    @{pv_my_date}{01/01/2009}\[YYYY-MM-DD]
    hoping that it would render the 01/01/2009 into 2009-01-01 format but to no avail. Annoyingly there are no examples of a format mask being used, and I can't see any examples in Paint or Sales either, so maybe the documentation is wrong.
    But wouldn't it be great if it did work - render dates into exactly the format you want, regardless of what locale the user is using!

    Try to look into that prompt column to see why you are getting different date format.
    If it is not correct as per you application then I would suggest to correct it using column->Data Format and then Save.
    I would suggest to convert the filter to SQL format to handle it, you may get it after Filter... button add date and then use Advanced button. using SQL you have options to do it.
    Thanks
    Edited by: Srini VEERAVALLI on Apr 12, 2013 7:47 AM
    What is Print Date?!! Is that available column in Subject Area? If you dont know why its like that investigate.
    Edited by: Srini VEERAVALLI on Apr 12, 2013 8:10 AM

  • How can I change defaut date format to dd-mon-yyyy in bi analytics

    hi..
    How can I change the default date format to DD-MON-YYYY in BI Analytics...
    I am passing a date in a report from a prompt....but it is always taking "dd-mon-yyyy hh:mm:ss" format...I want to input the prompt in oracle's default date format i.e dd-mon-yyyy..
    please help...I dont want to use cast function because it will convert the date into a character value....I want a date...

    Hi USer
    Try this link
    How to change date format in OBIEE
    Re: repository variable at date prompt
    Thanks
    Diney

  • How to change date format for FM ?

    Experts !
    i am trying to use FM DATE_TO_PERIOD_CONVERT. for this FM the input date formate is mmddyyyy
    but my variable returns in yyyymmdd. bcoz of that my FM doesnt understand the input date.
    how do i do this? i am very poor in abap skills so will not do too much of codeing to convert.
    thanks

    Thanks Gharu !
    I do get the correct formate using your code. but the problem if i debug my code goes till the FM and then it kicks it out. i dont know why.
    The data type what you have define in your code is not what i have in my code. is it bcoz of that.
    In your code..l_date type sydatum
    in my code ...l_date like sydatum <-----Do you think i sould make it type ?
    Also, in your code ..
    l_olddate(8) type c,
    l_newdate(8) type c,
    while in my code..
    l_olddate  LIKE sy-datum
    l_newdate  LIKE sy-datum
    Do u think i should change data type ?
    If yes , then it will be big change for me. can you make it according to my DATA TYPE ?
    thanks..i am waiting....

  • Date format changes in the middle of a program execution

    In my C code I have a series of select statements.
    When I first get a session to the database I use the following command to set the date format
    alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
    It works fine for a few queries. After a while during the program execution I see that the date format changes to 'DD-MON-YY' format. This results in a series of error in my code because I expect the date format to always be in the 'MM/DD/YYYY HH24:MI:SS' format.
    Any idea why the date format should change all of a sudden in the middle of the program execution.

    I second the idea that you should always use TO_DATE and TO_CHAR if you want to reliably convert between dates and strings.
    Without seeing your code, it is hard to say why your date format is changing, but the most likely reason is that you are changing users somewhere in the code. For example:
    SQL> show user
    USER is "OPS$ORACLE"
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003
    SQL> ALTER SESSION SET nls_date_format='dd-Mon-yyyy hh24:mi:ss';
    Session altered.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-Jul-2003 10:15:12
    SQL> connect jtest/test
    Connected.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003TTFN
    John

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • Change date format in EP when introduce values with "/" as date separator

    Hi experts,
    We have ECC 6 EHP3 with Enterprise Portal 7 SP 18. We instal BP_ERP5ESS
    1.31 SP 4.0, BP_ERP5COM 1.31 SP 4.0, BP_ERP5MSS 1.31 SP 4.0, SAP_ESS
    603 SP 4.12 and SAPPCUI_GP 603 SP 4.1
    We activate the Travel Management (FIN_TRAVEL_1) business function, so
    we use WD ABAP for travel expenses.
    The issue is when in the Portal, go to Travel and Expenses and create a
    new travel request or a new expense report and introduce the values of
    the date with "/" as separator. The system changes the date format, and
    change the days for months and months for days, DD/MM/YYYY change to
    MM/DD/YYYY. For example if we introduce 31/12/2009, the system change
    to 12/31/2009 and gives an error.
    If we introduce with "." as separator, 31.12.2009, it works fine, don´t change days for months, so it seems that is not a problem of language settings.
    Any idea?
    Thanks in advance,
    Manuel

    Hi,
    You can check the date formate in the portal.........
    log in by the Super Super give the user name ...........and check the details..........
    in there in the 1st ..view you can set the date formate..............

Maybe you are looking for