Date format in Prompt

Hi All,
I am having a problem with the Date format in a Dashboard prompt. Using the following SQL for a default value, I get a date and time result, i.e. yyyy-mm-dd hh:min:ss
SELECT CASE WHEN 1=0 THEN "Leach Center - Visits"."Visit Date"
ELSE CAST(TIMESTAMPADD(SQL_TSI_YEAR, -1, CURRENT_DATE) AS DATE)
END FROM "DSA - Leach Center"
as soon as I click a new date in the calendar it goes to the right format of DD-MM-YYYY.
Any Suggestions?

Hi,
I have the same problem and I try to fetch the patch 92800334 in Metalink/Support, but get no result back/not found. Any ideas??

Similar Messages

  • Date format in prompt OBI 10g

    HI Experts,
    I have requirement for date format mm/dd/yyyy need to change dd/mm/yyyy . I used the following the query but giving error:
    EVALUATE('TO_CHAR(%1,%2)' ,"SI - Creations & Modifications
    Dim"."Première Date de Valeur" , 'DD-MM-YYYY')
    nQSError: 10058] A general error has occurred. [nQSError: 22027] Union
    of non-compatible types. (HY000)
    SQL Issued: SELECT EVALUATE('TO_CHAR(%1,%2)' ,"SI - Creations &
    Modifications Dim"."Première Date de Valeur" , 'DD-MM-YYYY') FROM SI
    Regards
    Birudu Gopal

    Hi,
    Sorry for mistaking your questions.
    Try the below ways of changing the format in the prompt:
    -In the physical layer in the Properties try to change the DATE_FORMAT.
    -By editing the globalfilterprompt.js we can avoid the conversion of Date value to DateTime in prompt.
    For this we need to comment the below code in globalfilterprompt.js in both 1) C:\OracleBI\web\app\res\b_mozilla\prompts
    2)C:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\b_mozilla\prompts
    //convert datetime; sTimeZoneOffset is '0' if data type is not datetime or type is 'drop'
    /*var sTimeZoneOffset = tArgs[3];
    if (typeof(sTimeZoneOffset)!='undefined' && sTimeZoneOffset != null && sTimeZoneOffset !='')
    var nOffset = parseInt(sTimeZoneOffset,10)
    if (typeof(nOffset)=='number' && nOffset != null && !isNaN(nOffset))
    var tDTP = new DateTimeParser();
    for (var i = 0; i < tValues.length; ++i)
    tValues = saw.tz.parseAndAdjustTimeZoneOffset(tValues, nOffset);
    -EVALUATE('TO_CHAR(%1,%2)' ,"Dim- Date".Start Date,'DD-MM-YYYY')
    -In Physical layer of Repository, change the Data type of your Date_Column to DATE data type.
    -In Dashboard Prompt, you have option to for SQL,write the Logical SQL or Advanced SQL as below:
    select cast("COLUMN_NAME" as date) from "PresentationLayerName"
    Hope this helped.
    Regards
    MuRam

  • How to change Date format in Prompts.

    Hi,
    How to change Date format to DD/MM/YYYY in Dashboard Prompts.Kindly let me know.

    Hi,
    try to below ways
    1) By using cast fxn you can solve it.
    SELECT CAST("YOUR COLUMN" AS DATE) FROM "SUBJECT AREA NAME"
    2) This is a known bug get patch Bug 9280334: CALENDAR DD/MM/YYYY PROMPT IN DASHBOARD RETURNING FORMAT YYYY-MM-DD HH:MI:SS from support.oracle.com
    3) refer
    http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
    Thanks
    Deva

  • Date format in prompts

    Hi all,
    I'm having an issue with dates formats in infoview, I have users in different regions and they are seeing  different date formats and sometimes the reports show errors because of the date format. I don't want to tell the users to change their regional settings, is there an option to display the same date format in infoview using date types?
    Thank you,
    Marcela

    Hi Amr,
    Yes, I fixed issue, the problem was because I was using opendocument and I was sending the parameters like this:
    ="<a href=\"../../scripts/openDocument.aspx?sType=wid&sDocName=ReportName&sWindow=NEW&lsMPartnerId=" + [Partner Id] +"&lsSFrom=" [Reportdate]"&lsSTo="+RelativeDate([Reportdate];1) "\">" [Partner Name]"->"[Reportdate]+"</a>"
    The RelativeDate funtion was changing the format; the format for lsSFrom was different of the lsSTo format, I applied the same function for lsSFrom and lsSTo, and now it's working fine. I had this issue is some regions, not in all. Now they see different format but the reports are working fine.
    Best regards,
    Marcela

  • 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=

  • Printer-friendly date format

    Hello ALL!
    Please help me with one problem.
    I create Dashboard with Dashboard Prompt for date. And date format in prompt dd.mm.yyyy.
    But when I click on "Printer-friendly"->HTML (or PDF) button I see that date format is yyyy-mm-dd.
    Help me, how can I have same date format in Printer-friendly view too.

    Hi
    Not sure which version of OBIEE you are using..
    But i'm getting expected results only.
    BTW, i'm using 10.1.3.4.1
    Thanks & Regards
    Kishore Guggilla

  • Problem with date format when ask prompt web-intelligence

    Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian.
    Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format.
    Looks like korean format of date 'jj.nn.aaa H:mm:ss'.  I see system settings of date in Win .. everything right
    What i have to do?
    Where i can change format date for bo?

    GK, try this...
    decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
                                                                      to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn

  • Changing Date Format in Dashboard prompt drop down list

    Hi friends, my dashboard shows a drop down list for dates , which are in format "7/1/2008 12:00:00 AM".
    This is defined datetime datatype in sql server. Is there any way to change the date format in dashboard prompt to just "7/1/2008" without doing it in database side.
    Appreciate your help.
    Thanks and regards

    Hi... Toony
    In Dashboard Prompt, you have option to select i.e. show SQL,
    there you write the Logical SQL or Advanced SQL: <em>select cast("timestampCOLUMN" as date) from "PresentationLayerName"</em>
    this is simple way without changing anything in rpd side...
    And if you want the timestamp column somewhere in some reports you can use that column directly.
    If you don't want you need to cast it as DATE.
    If your question was answered then put it as answered and mark it as correct... ;)
    Edited by: Kishore Guggilla on Oct 20, 2008 11:44 PM

  • Default date should be displayed in Locale's date short format in Prompt

    Dear BI Gurus,
    I would like to take your attention to resolve one of date format issue which we are currently facing.
    We want to display Current_Date in locale's date short format ( For US: MM/DD/YYYY and for UK: DD/MM/YYYY) in a dashboard prompt. Also we need to pass the the prompt value to the report filter through presentation variable.
    For this we used logical sql to get the default value as select Times.time_id from sh when times.time_id= Current_Date. Once I click on the preview button it was showing in locale's date short format. But when we place the prmpt in dashboard, the default date was coming up in 'YYYY-MM-DD' format. But since calendar picker is giving value in locale's date short format (For US: MM/DD/YYYY and for UK: DD/MM/YYYY), there is an inconsistency in the display format. So could you please provide any workaround to make them consistent.
    Thnaks,
    Siva Naga Hari.
    Edited by: user6371352 on 27-Mar-2010 13:50

    Hi Vinay,
    Thanks for reply.
    We are looking for default date display format in dashboard prompt. i.e For US locale, default date and calendar picker should be displayed in MM/DD/YYYY and for UK locale, default and Calendar picker should be displayed in DD/MM/YYYY.
    We don't have any problem in report output for different locales. Also we don't need to create 2 seperate reports for different locales. If we set the data format to [FMT:dateShort], it will display as per the locale's date short format. Please provide workaround to display in dashboard prompt.
    Thanks,
    Siva Naga Hari.

  • Change Date Format in Calendar prompt

    Hi All,
    I am on 11.1.1.5 and the calendar prompt on selection of date/typing of date defaults to MM/dd/yyyy but, the requirement is to make it to default to MM/dd/yy. I have made 3 changes to the localedefinitions.xml file (dateSeparator,dateShortFormat,dateOrder) and they look like below
    <property name="dateSeparator">/</property> // separator to use between fields in short date formats
    <property name="dateShortFormat">MM/dd/yy</property> // default short date format for locale
    <property name="dateOrder">mdy</property> // preferred order of date fields for input
    But I still dont see a change in the format of the Calendar prompt. Do I need to change something else too?

    I checked under the My Account the locale is set to English and I have the following in the file but still when I select in the prompt the date format is MM/dd/yyyy instead of MM/dd/yy
    <localeDefinition name="en"> <!-- english base -->
    <property name="localeDisplayMessage">kmsgLanguageName_en</property>
    <property name="defaultLanguage">en</property>
    <property name="characterSetList">locale:en</property>
    <property name="listSeparator">,</property>
    <property name="decimalSeparator">.</property>
    <property name="thousandsSeparator">,</property>
    <property name="dateSeparator">/</property>
    <property name="timeSeparator">:</property>
    <property name="am">AM</property>
    <property name="pm">PM</property>
    <property name="timeFormat">h:mm:ss tt</property>
    <property name="dateShortFormat">MM/dd/yy</property>
    <property name="dateLongFormat">dddd, MMMM dd, yyyy</property>
    <property name="negativeNumberTemplate">-#</property>
    <property name="collationImplementation">win:0409</property>
    <property name="dateOrder">mdy</property>

  • Date prompt to displayed in header&Format date format in header MM/DD/YYYY

    we have a date prompt. Based on the date selection on prompt, it has to be appeared on the Report header. Actually RELEASED_DATE is timestamp format. we need to format this to dispaly only MM/DD/YYYY format in Report header section.
    Report Name : <?$RELEASED_DATE?>
    We are displaying the same RELEASED_DATE with timestamp in Report section
    <?param@begin:CRSU_RELEASED_DATE?>

    can you paste the timestamp being displayed?
    You can use, format-date function or other, but its all based on the data you have for DATE.

  • Prompt window Issues-resize and date format setting to 'mm/dd/yyyy' .

    Guys,
            I have two issues which needs to be solved for better reporting.
            I am using url reporting approach to view reports in ActiveX viewer.
            1) I have to set date format to 'mm/dd/yyyy' in parameter prompt window by default It is in yyyy-mm-dd format.
             2) I have to make prompt window with full size screen in order to accommodate more than one date parameter and make it looks better.
         Can any one tell me how to change and fix date format and resize Prompt window?
          Should I open a ticket with business object in order to solve or customize the Crystal Report Server XI R2 configurations for us?
        Please suggest me some probable options for it.
    Sincerely,
    Sanjay Patel
    Edited by: Adlyd Joseph on Feb 3, 2009 7:22 AM

    Hello Adlyd,
    SAP Business Objects does not support customizing Infoview, CR Server, or BusinessObjects Enterprise.  I'll post the content of SAP Business Objects Note 1218598 below that speaks to this.  Even if they could help customize CR Server/Enterprise/Infoview there's no way to change the parameter prompting page.  It's a page that is generated at runtime, and it isn't exposed to any of the BusinessObjects SDK.
    If you want to see if SAP Business Objects can help you with the date format that might be possible.  In North America you can call 1-800-877-2340, and select option 4, and then option 1.
    You can also purchase technical support from the [Online Store|http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300].
    Sincerely,
    Dan Kelleher
    NOTE: This Note was written for BOE XI and XI R2, but it applies to BOE XI 3.0 and 3.1 as well as all versions of CR Server since version XI (v11.0).
    ++++++++++++++++++
    1218598 - Support policy on customizing BusinessObjects InfoView and other applications
    Symptom
    In previous versions of Business Objects products, Business Objects Customer Support had assisted customers with the customization of the ePortfolio and InfoView applications by providing guidance on what changes were required for simple and specific custom features.
    What is the support policy for customizing BusinessObjects XI, XI Release 2, XI 3.0, XI 3.1 InfoView and the other included applications?
    Resolution
    Starting with BusinessObjects XI, code-level customization of InfoView and the other applications included with BusinessObjects XI is not supported and not recommended. These applications include Crystal Reports Explorer and the Central Management Console.
    InfoView is a fully-featured product and can be customized by changing settings in the Central Management Console or by changing values in the application configuration files only.
    Requests for custom features in InfoView or any other included applications will be treated either as enhancement requests, or in extreme cases, as product defects. Any feature that does not function as documented will be treated as a product defect.
    Custom features may also be implemented as part of an Original Equipment Manufacturer (OEM) agreement, or by engaging Business Objects Consulting Services.
    Background Information
    Modification of any of the following file types in BusinessObjects InfoView XI, XI Release 2, XI 3.0, XI 3.1 is not supported:
    .aspx
    .cs
    .vb
    .ascx
    .asax
    .jsp
    .java
    .js
    .htm
    .html
    .csp
    See Also
    For more information, please refer to the technical paper, [Customizing Look and Feel using the CMC and Style Sheets|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/209e174d-be3e-2b10-4d8e-e25a76a6fac1].

  • How to change date format of user input prompt in infoview.

    Hi All,
    Every report webi or deski having date field as prompt when viewed in view mode in infoview shows date format as M/d/yyyy h:mm:ss a.
    Where this format is stored and how can we change it to dd/mm/yyyy.
    Any ideas.
    Regards,
    Gaurav

    Not sure id this helps...
    I was up against a similar issue of placing the user input dates, Starting & Ending, into one cell for a reference on each report header. After a few hours of diligence, I came up with a working model that finally worked:
    u_StartDateAsTXT=FormatDate(ToDate(UserResponse("Enter Date/Time Shipped (Start):");"MM/dd/yyyy hh:mm:ss a");"MM/dd/yyyy")
    and
    u_EndDateAsTXT=FormatDate(ToDate(UserResponse("Enter Date/Time Shipped (END):");"MM/dd/yyyy hh:mm:ss a");"MM/dd/yyyy")
    The report header has the following function:
    =u_StartDateAsTXT + u201C u2013 u201C + u_EndDateAsTXT

  • 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 ?

  • Change format date for Calendar Prompt!!!

    Hello there,
    For a date prompt when I choose *"Calendar"* in my control, the default format shown by the calendar is d/mm/yyyy.
    I want to save the value of my date prompt into a Presentation variable with the format yyyy-mm-dd. What conversion function can be used to achieve this?. In oracle the easiest way is TO_CHAR(dateHere,'YYYY-MM-DD') but when I apply this in the Edit Formula of the prompt it gives me an error.
    I know the date format for a Calendar object can be changed in the configuration file, but I want to avoid this, because I might affect other users.
    Please help.
    Thanks
    Edited by: PabloC2 on Feb 18, 2009 1:36 PM

    yes, I restarted presentation server and oc4j.
    but has no effects.
    date prompt has strange behaviour...
    for Administrator user
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has M.D.YYYY format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    for other users
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format

Maybe you are looking for