Prompt Calendar Control - Date Format

Hi,
I have a Calendar Control in my Prompt, that I initialize to a default value as:
SELECT MIN("- Dim_Date".DATE_VALUE) FROM PRS
When a user first goes to the dashboard page, the default value is in the format '2000-01-01'
However, when the user selects a different date, it goes to the format '01/01/2000'
How can I make the format consistent?

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.

Similar Messages

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

  • Restrict Calendar Control Date

    Hi:
    I want restrict Calendar Control date.
    For Example: I have 2 Calendar control parameter(Startdate,Enddate). If i select Startdate(2014-04-24)Parameter, Todate Parameter user will not select less than Startdate value (Past date are Hide/Invisible/Not selectable) and Limit the
    date. How to restrict Enddate parametre value in SSRS 2008 R2.
    Thanks in Advance
    Paramesh G

    Hi,
    Currently, this cannot be achieved in Reporting Services. If I specific dates in the available values, the calendar control will change to a drop-down box control. You can only specify the default value for this parameter.
    Here is my workaround for this:
    1. Add a text box and type “The start day cannot be greater than the end day!” in the value.
    2. On the Visibility page, choose the option of Show or hide based on an expression. Click expression button and type:
     =IIF(Parameters!EndDate.Value<Parameters!StartDate.Value,FALSE,TRUE)
    3. And define the visibility of your report as well, using the following expression:
    =IIF(Parameters!StartDate.Value>Parameters!EndDate.Value,TRUE,FALSE)
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Calendar Control Date Input Field

    Hi All,
    1) Is there any (easy) way to place a calendar control next to a date input field for date entry help (just like in JS)?
    2) If yes, how could we make the calendar help popup language-dependent ?
    Thanks for all the help...
    H2

    From the help menu in your Developer studio choose:
    SAP Web AS Documentation,
    SAP Web Dynpro applications
    Then go to
    Core development tasks,
    View, programming UI
    UI elements guide.
    Alternatively, on the left hand side you can search for any Web Dynpro class (e.g. IWDContextNode) and acces the Web Dynpro API.
    Good luck, Roelof

  • Central control data format

    is it possible to have a central control of data format
    for example, all number data are with thousand separator and zero decimal place.
    if some columns have data format, user can customize it (like current way - set manually in column property)

    Hi.
    Yes, you can edit this in localedefinitions.xml whic is located in:
    ...OracleBI\web\config\localedefinitions.xml
    <--property name="decimalSeparator">.<--/property>
    <--property name="thousandsSeparator">,<--/property>
    or in Answers you can save in the column properties:
    as the system-wide default for this data type
    Regards
    Goran
    http://108obiee.blogspot.com

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

  • 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 format for ipc calendar control in configuration UI

    Hi
    Does anyone know how to change the format of the date in the calendar control of the configuration UI? Currently when I try to configure a product in the b2c webshop or through SAPGUI, my date characteristics display in MM/DD/YY rather than DD/MM/YY. I have checked the usual suspects (default date format of WEBLOGIN user, logged in customer, my user) and all are set to DD/MM/YY. I could not find a setting in the XCM either.
    Can anyone point me in the right direction?
    Thanks
    Mike

    Hi Mike,
    Date display property is part of user settings for User ID.
    Go to transaction SU3
    Go to Default tab and adjust the date formats.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Change date format in dashboard promt and calendar

    hi,
    do any one know how to change the date format when using the calendar option in dashboard prompt. As the user picks a date from the calendar the format becomes DD-MM-YYYY. The customer would like YYYY-MM-DD!!
    Any suggestions?

    Hi Jose, i tried to update the settings in the NQSConfig.INI file, but there was no luck.
    I would like to mention my issue here again.
    I have a dashboard prompt built on a Date Column and I would like to see it as a Calendar Type. The value of this prompt is save in a variable pDate.
    In the answer, i have a filter on a date column(This is exactly the same column used to build the Prompt). The filter i set as Advance SQL Filter as I want to use the TimeStampAdd function.
    The filter is set as Date_Key = TimeStampAdd(SQL_TSI_DAY, -6, '@{pDate}')
    The above request when ran from the dashboard, gives me the following error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 932, message: ORA-00932: inconsistent datatypes: expected DATE got NUMBER at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    SQL Issued: SELECT Calendar."Time Id" saw_0, "Sales Facts"."Amount Sold" saw_1 FROM SH WHERE Calendar."Time Id" = TimeStampAdd(SQL_TSI_DAY, -6, '01/01/2002 12:00:00 AM') ORDER BY saw_0
    My understanding is that the Calendar control is populating pDate variable in 'mm/dd/yyyy hh:mi:ss' Format, while the TimeStampAdd function expect the variable as 'yyyy-mm-dd hh:ss:mi' Format.
    Is there any other place that we need to update on the server that will force the Calendar to return the prompt value in 'YYYY-MM-DD HH:MI:SS' Format ?
    Thanks
    Sai

  • Dashboard prompt calendar date not filtering results

    I have a report with a date value. I custom formatted the date to MM/dd/yy and the report shows it correctly. I created a dashboard prompt with a calendar control and "is between" operator. However, the date never gets filtered. All values are shown. Do I have to change anything in the prompt because I custom formatted the date?
    Ahh.. forgot to add "is prompted" to column filter

    Hi Subbu,
    Thanks, but my question is a bit different.
    I want to have 2 'Dashboard' Prompts:
    1) Country - The default value for which should be set to the logged in User's Country. Later the user can choose to select a different country.
    2) Calendar Year/Month - For this I want to limit the restrict the values that are displayed, i.e. they should start from 2010 / 01 and end at Current Month. So I need the variable that would work with this field.
    I am unable to get solution for both of the above.
    Regards,
    Ady

  • Using 'Calendar' control type in prompt - not available

    Hi All,
    I am trying to setup a simple from and to date prompt that can be used in my reports to set the to and from date range for filtering the fact data that is returned. Following a number of blogs and articles on this it seems pretty straightforward. I have setup two static presentation variables on the rpd (startdate and enddate respectively) and I have started to create the prompt in answers that will be used by a number of different reports.
    My issue is that, all the articles I have seen indicate the use of the 'Calendar' control type when setting up the prompt. I however only have the following control type options for the prompt *(Edit Box, Drop Down List, Multi-Select)*. I do not see Calendar. Does this need to be initialized in any way to make it available .. ie move the calendar.js file somewhere so I can use the calendar control?
    example instructions: http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    Thanks,
    K

    Figured it out. The fields I was using in the prompts were character fields representing dates 'YYYY-MM-DD'. In order for the Calendar control option to become visible the fields selected as part of the prompts need to be of date or timestamp data type.
    Thanks,
    K
    Edited by: user_K on Apr 20, 2010 12:47 PM

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

  • How to change calendar date format

    Hi All,
    I want to change the calendar date format to YYYY-MM-DD . For that i did the changes in localedefinitions.xml file but the date format i am getting is YYYY-M-D (if the month and date is single digit no else i am getting YYYY-MM-DD).
    Example - 2010-9-1
    we need - 2010-09-01
    Which file we need to modify to get the date alway in YYYY-MM-DD format.
    Thanks..

    hi,
    How about this?
    http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
    or
    http://obieetalk.com/how-change-date-format-mask-date-dashboard-prompts-drop-down-list-and-calendar
    thanks,
    Saichand.v

  • SQL SSRS 2008 DateTime Calendar Control and Oracle 10g Data Source

    Hello. I am creating reports in SSRS 2008 using the calendar control for a date range. Let's say we select a start date of 3/3/2012. This parameter is sent into my SQL statement in the WHERE clause which is executed against an Oracle 10g database. All syntax has to be in SQL that Oracle understands, so no CONVERT or CAST.
    The format of the date is throwing an error "ORA-01843: not a valid month" when I try to use the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_DATE('3/03/2012', 'MM/DD/YYYY')
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    I cannot find a way to format the date parameter in SQL Server SSRS before it gets to the SQL to be executed in Oracle.
    Please help.
    Thanks,
    Sunny

    920616 wrote:
    sb92075: I am showing you how Oracle renders the date if I do a simple select from the table from which I am trying to pull data. You are right, it sure doesn't prove anything other than how the date looks right out of the Oracle database, but hopefully, it will give a clue as to how I need my SSRS date parameter to work.
    Hans Forbrich:
    I get ORA-01722: invalid number when I try the following:
    SELECT *
    FROM TABLE
    WHERE STARTDATE >= TO_CHAR('3/03/2012', 'MM/DD/YYYY')
    Solomon:
    It works. The problem is getting the parameter '3/3/2012' into a usable format for Oracle.
    Let's assume an application is sending in '3/3/2012' which will be used in an Oracle query (no PL/SQL allowed, nor can I create functions, stored procedures, etc - only straight up SQL). How can I prepare the parameter to successfully do the compare on the Oracle Date field?
    12:50:23 SQL> select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual;
    select TO_CHAR('03/03/2012', 'MM/DD/YYYY') from dual
    ERROR at line 1:
    ORA-01722: invalid number
    12:51:00 SQL> ed
    Wrote file afiedt.buf
      1* select TO_DATE('03/03/2012', 'MM/DD/YYYY') from dual
    12:51:20 SQL> /
    TO_DATE('03/03/2012
    2012-03-03 00:00:00

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

Maybe you are looking for