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

Similar Messages

  • Localdefinitions.xml and format date for Calendar Prompt

    HI!
    1. I change in localdefinitions.xml all dateformats for my locale
    2. I restarted my BI
    3. no effects
    why?

    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

  • 大家帮帮忙呀,真是苦恼呀!The date for the prompt 'startDate' is invalid. (WIS 10706)

                   IInfoObject report = (IInfoObject) objects.get(0);
                   IWebi webi = (IWebi) report;
                   // u83B7u5F97u63D0u793Au53C2u6570
                   di = getReportEngine().openDocument(report.getID());
                   di.refresh();
                   // u8BBEu7F6Eu53C2u6570
                   if (params != null)
                        Prompts prompts = di.getPrompts();
                        int promptNum = prompts.getCount();
                        for (int j = 0; j <= promptNum - 1; j++)
                             Prompt p = (Prompt) prompts.getItem(j);
                             if(params.get(p.getName())!=null)
                                  //u68C0u6D4Bu662Fu5426u5E26u6709u7A7Au5B57u7B26
                                  String temp[]=(String[])params.get(p.getName());
                                  boolean falg=false;
                                  for(int len=0;len<temp.length;len++)
                                       if(temp[len]==null)
                                            falg=true;
                                       else if("".equals(temp[len].trim()))
                                            falg=true;
                                  if(falg)
                                       continue;
                                  //u5BF9u65E5u671Fu6570u7EC4u8FDBu884Cu8F6Cu6362
                                  if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
                                       String formatStr=p.getInputFormat();
                                       for(int x=0;x<temp.length;x++)
                                            temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
                                  System.out.println(p.getName()+"u503C  "+temp[0]);
                                  p.enterValues(temp);
                        PromptsUtil.populateWebiPrompts(di.getPrompts(), webi);
                   // u540Eu7F00u540Du79F0
                   if (format !=EXCEL && format != PDF && format !=Webi)
                        throw new Exception(" u751Fu6210u62A5u8868u5B9Eu4F8Bu683Cu5F0F,u53EAu63A5u6536EXCEL,PDF,Webiu683Cu5F0Fu53C2u6570!");
                   webi.getWebiFormatOptions().setFormat(format);
                   ISchedulingInfo scheduleInfo = report.getSchedulingInfo();
                   scheduleInfo.setType(0);
                   //u662Fu5426u53D1u9001u90AEu4EF6
                   if(isSendMail)
                        doSendMail(scheduleInfo,report,
                                  format,message,title,recipientAddresses,CCAddresses);
                   //u8BBEu7F6Eu81EAu5B9Au4E49u503C
                   if(properties!=null && !"".equals(properties))
                        report.properties().setProperty(CUSTOMVALUE,properties);
                   scheduleInfo.setRightNow(true);
                   // u751Fu6210u5B9Eu4F8B
                   getIInfoStore().schedule(objects);
    上述代码片段为BO生成实例的过程,程序不会出错。但BO报表历史记录中,提示:The date for the prompt 'startDate' is invalid. (WIS 10706)
    刚开始认为:日期格式错误,我便加上了
    if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
           String formatStr=p.getInputFormat();
           for(int x=0;x<temp.length;x++)
                  temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
    需且验证日期格式,正是p.getinputFormat()所要求的格式,可BO历史记发中,生成实例还是报上述错误。
    Edited by: pyantking on Jul 27, 2009 2:39 PM

    Hello Anh,
    With XI 3.1 some significant fixes were delivered to address issues like you describe : create a query with QaaWS Designer using date input parameters (prompts) with a given locale, then edit (with QaaWS Designer) the query under another different locale, where dates are set with a different format.
    AFAIK QaaWS queries keep the locale under which they were created, fixes were aimed at translating input parameters in the right format so errors like the one you describe should not be encountered.
    i suggest you get in touch with the SAP BusinessObjects tech support with your issue, so we will be able to investigate further in conjunction with QaaWS dev team and work out a fix, if this turns out to be a bug.
    BTW, Have you considered upgrading to a more recent Service Pack? Business Objects Enterprise XI 3.1 SP3 is now available since 2010 Q2 (no guarantee, though, that this issue would be solved with this SP)
    Hope that helps,
    David.

  • Who change format date?

    hi,
    who i can change format date in servidor ORACLE for all client?
    Thank´s

    The default format can be set by changing the NLS_DATE_FORMAT initialization parameter and restarting the database, alter system set nls_date_format = "YYYYMMDD" scope=spfile; and the database has to be shutdown and restarted to enforce the change. It might be alter database instead of alter system, I usually try the wrong one first.
    But the setting can be overridden in the client setup or changed in a user session, there's no way to enforce a particular format on the client environment.

  • How Can I Change Format Mask For All Fields that type's Number Depend on Parameter in Report Builder 10g ?

    I want Change format mask for all fields that type's number
    Such as
    if  :parameter_value = 1 then
       all fields format mask = ' 999,999,990.000' ;
    else
       all fields format mask = ' 999,999,990.00' ;
    end if;
    Regards

    So, i have bad news for you : you'll have to rebuild again.
    Meanwhile i have excellent news for you : there's an online tool made by Johannes Henseler called Sidecar xml which builds the necessary xml file for you, sort of what you find in the Digital Publishing Folio Editor website, but saves it in your Folio folder.
    Next time you import all your folder (with that file), it will place all the necessary information, and even reorder the articles.
    Build once, play many times.

  • Format Date for time.

    i have a doubt as to how to store the date along with time from my front-end Forms Developer Suite 9i application.
    I am trying to give this kind of statement from SQL-plus:-
    update login_master set last_accessed=to_Char(sysdate,'dd-mon-yy HH:mi:ss')
         where login_ID = :GLOBAL.LOGIN_ID
    but, there is a message which comes like this:-
    ORA-01830 date format picture ends before converting string.
    Also, i want to compare this time stored against time a little later, say after 1 or 2 hrs to get number of minutes.
    How can i do this? I hope, my question is clear. Please help in solving the doubt.
    regards.

    This topic is a duplicate of this one:
    <p>Format Date for time
    <p>Please reply on the other thread.

  • Function Module/Document to change Reversal date for FI  document.

    Can anyone please provide me with the Function Module/Document to change Reversal date for FI  document.

    Hi Vikram,
    Normally, you post a reversing document in the same period you posted the original document.  The period of the original document must be open to post a reversing document. If the period is not open, you can overwrite the posting date field with a date in an open period, such as the current period.
    Regards,
    Manoj.

  • Block change on dates for Approved Purchase Request

    Hi expert,
    I'm new to SAP Business One.
    I required to block change on dates for approved Purchase Request.
    What will be the best solution and how-to achieve this objective?
    Thank you.

    Hi,
    My company currently using SAP B1 version 9 PL05.
    I have already applied approval procedure that it will always launch approval procedure for Purchase Request document (attached screenshots for setup approval procedure).
    With above setup, Purchase Request document can only added after it has been approved (an [Approved] text has been shown on document view window and status is 'Open' as per attached below)
    The dates have not disabled for editing although it has go through approval process.
    The dates also not disabled for editing (Status is 'Closed' as per attached screenshot below) after it has been drawn to Purchase Order document.
    Is anyone encounter this issue?
    I know that SP_TN can prevent update but it is just a workaround method, not a best solution that I'm looking at.

  • Date format for Calendar Prompt  in Oracle BI

    Hi,
    1)
    In Oracle Answers, I need to have this format : dd-MMM-yy in a Calendar Prompt
    I've changed in localedefinitions.xml :
    <property name="dateShortFormat">dd-MMM-yy</property>
    <property name="dateOrder">dmy</property>
    <property name="dateSeparator">-</property>
    <property name="dateFormats">
    <property>dd-MMM-yy</property>
    </property>
    then I've restarted all services, but still, the format is (only in Calendar prompt) : dd-mm-yyyy (ex : 16-01-2007).
    I'm using : Oracle Business Intelligence Product Version      10.1.3.3.3 (Build 080430.1930).
    2)
    related to this, I set the value of a presentation variable with the value of returned by this Calendar Prompt. I need to compute (in a report column) the difference (in days) between some column and that presentation value .
    I've tried :
    TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", TIMESTAMP '@{v}')
    But I get errors related most probably to the way TIMESTAMPS seems to work : getting only 'yyyy-mm-dd hh24:mi:ss' like parameters ? any idea how to convert variable v to timestamp , using a custom mask ?
    Thank you !

    right now, Calendar prompt displays (by default) dates using the format : DD-MM-YYYY, although I tried to configure everything to DD-MMM-YY
    If using folowing formula in a column : TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", CAST('@{v_reference_date}' AS DATE))
    i got errors (State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtExecute: )
    I got errors for TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", @{v_reference_date})) as well.
    It works for TIMESTAMPDIFF(SQL_TSI_DAY, Attributes."Modified Date", CAST('@{v_reference_date}' AS DATE)) only if I directly type the date (in the Calendar prompt) using a DD-MMM-YY or a DD-MM-YYYY- format .
    so , I will need to force Calendar to use DD-MMM-YY format (don't know if it is possible), or, in the worst case, I should be able to CAST a string to date using a mask provided on the spot (something like to_date('01-13-2010', 'dd-mm-yyyy') )
    Edited by: alex.v on Jun 7, 2010 11:26 AM

  • Z10 Voice Control speaks in US-format date for Uk date

    Issue: UK format date 02/08/13 is "said" by Voice Control as "2nd August" - the date is in the calendar correctly as 8th Feb.
    Steps to repeat the issue: "Schedule new appointment" using the Voice Control and add an appointment today (8th Feb 2013) - correctly added to the Calendar but the voice confirmation says "2nd August".

    Hey dpjf,
    Welcome to the BlackBerry® Support Community Forums.
    To better assist you I have a couple questions:
    When you go to Settings> Voice control> Is the Language set to English UK?
    Go into Settings> Language and Input> What is the Display Language and Region set to?
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Change format date TO_DATE(TRUNC(DBMS_RANDOM.VALUE...

    Hi all...
    I am trying dbms_random like this :
    **Type data :
    AAAA VARCHAR2(35)
    BBBB VARCHAR2(6)
    DDDD VARCHAR2(20)
    E_DATE VARCHAR2(14)
    **store procedur :
    BEGIN
    FOR X IN 0..3 LOOP
    INSERT INTO TEST VALUES (
    'AAAA--'|| dbms_random.string('X', 28),
    'BBBB' || TO_CHAR (TRUNC(dbms_random.value(0,10))),
    'CCCC--'|| dbms_random.string('X', 12),
    TO_DATE(TRUNC(DBMS_RANDOM.VALUE(2455532,2455563+3)),'J')
    END LOOP;
    END;
    Output :
    AAAA BBBB DDDD E_DATE
    AAAA--RTL2OWN8RVOMY1IUD93RP91RWOQA BBBB1 CCCC--JCWAXRO3TMP0 12-DEC-10
    AAAA--629F3A4AIW5E4OHCDVFZ41SFB2U4 BBBB5 CCCC--DLAUZO511Y97 12-DEC-10
    AAAA--XHKR95JISQRTRH54KNOQKDVUJ6QF BBBB6 CCCC--K7CHOT2KULNV 10-DEC-10
    AAAA--7DRZ38SPRIN26HNA7VPQV9FKWCCQ BBBB7 CCCC--FXV3CCY3BWHY 09-DEC-10i want format E_DATE to DD-MM-YYYY without change type data and still use dbms_random...
    Could you pls solve me out ?
    Thank you
    -newbie-pl/sql-

    Hi,
    Sorry, I'm not sure I uderstand the problem.
    Are you getting the date correctly, but you want to store it in a VARCHAR2 column? That's not a very good idea: dates belong in DATE columns, but if you ever want to convert a DATE into a string, use TO_CHAR:
    TO_CHAR ( TO_DATE ( TRUNC ( DBMS_RANDOM.VALUE (2455532, 2455563+3)
                , 'J'
         , 'DD-MM-YYYY'
         )or equivalently:
    TO_CHAR ( DATE '2010-12-01' + dbms_random.value (0, 34)
         , 'DD-MM-YYYY'
         )Since you're not displaying the hours, minutes or seconds, there's no point in using TRUNC just to set them to 00:00:00.
    Edited by: Frank Kulash on Feb 9, 2011 10:32 PM

  • How to format data for a custom group

    Hi all
    I have a pivot table with Actual and Budget as columns and some accounts in the rows. Since I'm using the account hierarchical column, I created custom groups for the accounts using the Selection steps pane. For example, I created a new group called Profit to combine 3 different Profit accounts and display one Profit line.
    Now I want to format the data for the Profit group. I right-click on the Profit group, choose to edit the group and click on the Format button on the bottom left corner. I add some formatting, e.g. borders. When I now view the pivot table, borders have been applied to the label of the group - so the word Profit is now bordered. However, the values in the Actual and Budget columns do not have a border. Don't know what I'm missing, but I want both the group label and the values to be formatted the same way.
    How can I apply formatting to the data/values for the custom group?

    Yeah tried that already, it formats the entire column whereas I need just the values for the Profit row to be formatted. Seems it is a limitation only when using custom groups?

  • Can we change pricing date for line item in billing

    Hi Expert,
    Can we change pricing date , while raising inoice for particular line iteam

    Hi,
    We can not change the pricing date for perticular line item at billing document level, the only option is we can enter the required date at the time of invoice creation in VF01 screen.
    If your requirement is copying the same pricing date that is entered at sales order, then do the following.
    Go to T Code:VTFL and choose your DElivery Type and Billing Type, then choose your item category and then change the pricing type as 'D' .
    Regards,
    Pasapula.

  • Work Center Changes need data for previous and new work center

    Hi All,
    I have a requirement as the organisation is going through RESTRUCTURING. In ECC in Plant Maintainance they are changing Work Center. E.G.
    Work Center OLD : ABC
    Work Center NEW : XYZ
    Now the requirement is I have data for ABC already coming in BI Prod. Env. Now when they will change ABC to XYZ the new data will come for XYZ.
    Reporting Reqmt:
    Data In Cube
    Work Center     No. of Maintainence Orders
    ABC                             10
    XYZ                             20
    When user run the report it should and gives input in Work Center variable as " XYZ" then
    XYZ -- 30
    Presently it is showing
    ABC --10
    XYZ --20
    They have list of OLD Work Center mapping to NEW Work Center.
    Now, Can anyone tell me is it possible to achive this scenario.
    Thanks,
    Mayank

    Hi,
    find the below link it has similar issue ,
    Re: mapping between old/new material codes in BW
    Regards,
    Satya

  • User exit to change Release date for ME54N

    Dear Folks,
    I need and user exit / BADI to update EBAN-FRGDT (Release date) based on the value in EBAN-FRGKX (Release indicator).
    For example : If the PR release indicator changed to "F", I need to change the EBAN-FRGDT (Release date) to sy-datum and then save.  Please help me. 
    Thanks,
    Kishore. P

    Hi Rohini ,
    I have used BTE 1120 (Business Transaction Event) to change the value date for line items (BSEG-VALUT) for F110.
    May be this can help u ..... try once ....
    Regards,
    AKS

Maybe you are looking for

  • Regarding  Logical Database

    Hi all,       My problem is transporting Logical Database to Production server. first i have transported to quality server. in Quality Server it is working fine. But when i Transport to Production , 'Documentation Not exist ' erro r is coming.       

  • Won't detect Airport Express

    Hi, This seems to be a common problem. I have an Airport Express connected via Ethernet to my home network. I am able to connect to the device via the "Configure Other" option in the Airport Utility however the utility itself is unable to find the de

  • Upgrading my Iphone 5 to IOS 7 Ear Speaker is not working, please help us

    Iphone 5 Ear Speaker is not working after upgrading it to IOS 7

  • Mass maintenance of sourcelist.

    Hi Can we do mass manitenance of sourcelist. I don't see any tcode that provide this. Can I know the varoius ways of mass maintenance.

  • EWM-ECC  CIF Integration model

    Hello All, I want to tansfer data for plant,shipping point,customer and vendor from ERP to EWM.For this I have created Integration model.When I am trying to activate this I could not as I am getting message like'Queue for current initial data transfe