Applying date and number format mask

I have specified a date format for an attribute and a number format for another attribute of an entity object using Entity Object Editor - Control hints for the attributes.
The date format is:
Format type: Simple Date
Format: dd.MM.yyyy
The number format is:
Format type: Currency
Format: 0,000.00 km
When using <c:out value="${bindings.MyDate}"></c:out> the format mask for the date is applied and it looks good, but when using
<c:forEach var="Row" items="...">
<c:out value="${Row.MyDate}"></c:out>
</c:forEach>
the format mask is not applied.
When it comes to the number format it is not applied no matter what I use.
I have tried setting the format for the view object attributes as well but the result is the same. How do I make this work?

Can it have something to do with <html:form> ? Since it works using <c:out value="${bindings.MyDate}"></c:out> inside a html:form.

Similar Messages

  • A question about date and number formats

    Hi,
    I have to change date and number formats from USA to UK format. Is the only place I must do that in user settings (SU01) ? I mean, is this enough or are there any other customizing settings, in FI for example ?
    Thanks in advance,
    Paulo

    I tested very much and the only place we should set it is on user settings

  • Date and number format with JDEV 10 g

    Are there some known bugs in JDEV 10g regarding dates and currency format? I am using bc4j, struts and jsp. I have tried setting the format on the entity and view objects but it works sometimes and sometimes not.

    More info please.

  • Custom Date and Number Formats

    Is there a way in disco admin to set the date format based on values from the database?
    For example, we have a function that we use in Oracle Reports (p_indicator passed in):
    CASE p_indicator WHEN '1'
    THEN v_format := 'MM/DD/YYYY'; -- US Date format
    ELSE v_format := 'DD-Mon-YYYY'; -- Foreign Date format
    END CASE;
    return v_format;
    In the Oracle Report field Format Trigger we use (iss_date_field_display is the database field indicator from the report SQL):
    SRW.SET_FORMAT_MASK(format_mask(:iss_date_field_display));
    So, any way to dynamically change the format mask for date and/or number fields in Discoverer based on data in the schema and/or a function?
    Thanks!

    Thank you,
    What would be the best way to call this function in a workbook?
    i created a function in the schema, and tied it to a calculation in the workbook, but the dbms lines fail. if i comment them out, i get a return, otherwise, the return is not getting set. here is the work...
    BEGIN
    dbms_session.set_nls('nls_currency', '''£''');
    CASE p_indicator WHEN '1'
    THEN
    dbms_session.set_nls('nls_date_format', '''MM/DD/YYYY'''); -- US Date format
    v_format := 'MM/DD/YYYY';
    ELSE
    dbms_session.set_nls('nls_date_format', '''DD-Mon-YYYY'''); -- Foreign Date format
    v_format := 'DD-Mon-YYYY';
    END CASE;
    RETURN v_format;

  • Date and Number formatting

    Hi All
    I am getting data from RFC and able to bind it into table. Now I want to format date and numbers into user logged in format. i.e. If user enters country as Germany while registration,date format should be European in table displayed otherwise it should be US format.
    Can any one suggest me how to do it?

    Thanks for your your Help Abhilash. I slightly changed code and now its working. I think this is almost same thing that you discussed.You can see code below.
    Can you help in working with Number  format also? I am getting number format exception. String returned when RFC executed is in 10,000,00. I need to change according to user locale format. I tried doing it in java also. When I remove commas in above string its working fine.
    public java.lang.String DisplayingDateFormat( java.lang.String date )
        //@@begin DisplayingDateFormat()
                        // Current date Format in BW
                             SimpleDateFormat sdf = new SimpleDateFormat("MM.dd.yyyy");
                             String ChangedDateFormat=null;
    try{
    //     sdf.setLenient(false);
    //Parsing String to Date
         Date sqlDate =sdf.parse(date);
    //     wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(" Source date"+ ele.getSched_Date());
    //     wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(" Date converted "+sqlDate);
    //       Getting User Locale
    //Getting Locale Information form Current Session
         Locale userLocale= WDResourceHandler.getCurrentSessionLocale();
         //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(" User Current Locale "+userLocale );
    //Setting date format ie Short,default etc
         DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, userLocale);
         //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(" Formatting to user locale ");
         //Converting Date to String
         String newDateString = dateFormat.format(sqlDate);
         //wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(" Changed Date Format "+newDateString);
         //binding to Table UI element
         ChangedDateFormat=newDateString;
    catch(Exception e)
         wdThis.wdGetAPI().getComponent().getMessageManager()
                             .reportException(
                             e.toString(),
                             false);

  • Delimiteddata and number format mask

    Hi,
    I need to export data from my report to a csv format in reports 6i.
    I installed patch 12 so I can use the delimiteddata format.
    This works but I do have problems with the number format.
    I formatted all of the number fields so they appear as desired in the report when running in C/S mode.
    I learned that you can use the number format, date format and cell wrapper variables for delimited and delimiteddata formats.
    These parameters do work with delimited output but they don't when generating delimiteddata.
    Only when I start the reports builder with numberformatmask=something on the command line then the number format given on the command line will be used. but then you cannot change it (even not in the dialog when generating a delimited format) anymore once reports builder is open.
    Is there a solution for this problem or is it fixed in a later patch (I haven't seen anything new in then patch 13 notes).
    Piet

    Hi Pieter,
    This does looks like a Bug. Please contact Oracle Support to assist you in getting the right patch or otherwise.
    Regards
    Oracle Reports Team.

  • Date and Number format

    Two questions:
    I want to enter "3/24" (without the quotes) but Numbers shows "March 24, 2009". I really want it to show 3/21. How do I do this?
    Second, to show a number as "Currency" Help says to select the cell then choose "Currency" from the Format Bar. "Currency" doesn't show up in the Format Bar.
    Thanks for your help.

    pee,
    First question. Format your cell as Text before entering the data.
    Second question. The Currency symbol in the Format Bar is a "$", without the quotes. The word is spelled out in the Cells Inspector Cell Format drop-down list, the other place where you can set the format.
    Regards,
    Jerry

  • Date and number representation...

    Hi all,
    There is something I don't understand in my application, or maybe in Web Dynpro concept...
    We have the following configuration:
    - users authenticates on my application by using their SAP username / password
    - authentification is done in UME by retrieving data from R3 (so, no users are defined in UME)
    What I don't understand is why date and number formats are not the ones configured in R3.
    For example, when running transaction su01, I can see my user is having the following formats:
    - jj.mm.aaaa
    - 1,234,567.89
    However, when running my application, I have the following formats:
    - mm/jj/aaaa
    - 1,234,567.89
    Do anyone know why ? What can I do to have my web dynpro retrieving the correct format ?
    Thanks

    Hello,
    Quote from UME documentation (http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/com/sap/security/api/IUser.html#getLocale())
    <i>Gets the user's Locale; this determines e.g. the language in which text is displayed to the user's and the style that numbers are formated.</i>
    So, we can guess that data specified for formats in su01 doesn`t replicated to WAS`s UME and locale is used to determine formats instead.
    Regards, Maxim R.

  • Form Letter Report - How To Format Date and Number Hidden Fields

    Hi
    Is it possible to format date and number fields in a form letter report. This case were Paper Design shows fields as $<hire_date>. The examples in reference book only print character values which do not require formatting. I cannot determine how to achieve this. Cannot select fields from Paper Design view as per other report styles where can apply formatting. Do I have to perform formatting in the query to return date as string in format I wish for? This is not case for other report styles.
    Thanks

    you could add a field, set the source of the field to hire_date (assuming hire_date is a column in the data model), and put a format mask of whatever format you want. then set visible to No.
    then instead of &<hire_date> you can instead type &<name of your new field>.

  • Date and number display format

    Hello all,
    I am new to Adobe Form, and I am quite unimpressed with how difficult it is to do the most simple things.
    I have managed one way or another to solve all my problems until now, but this one got me stuck.
    I have date and number fields in my form, and here is what I want to do but cannot:
    - I need these fields to be displayed using the defaults date and number settings of the SAP user who is generating the form. This one is really hard for me to figure out.
    - I need some other fields to be displayed in a specific format depending on a variable in the context of my form. I imagine this could be done using scripting, but how to change the display format of a field via scripting?
    Anyone has an idea of how that can be achieved?
    Thank you.

    Hi Thomas,
    For these kind of issues you will get many answers if you search the forum.
    If your requirement is to display the current date in the form, just drag and drop the "Current date" UI element from the Library palette -> Custom.
    If it is to get the date from SAP and display, pass date to the context node and just drag and drop the field into the form from the data view.
    Check the following wiki by Chintan. It explains some common scenarios in javascript.
    [JavaScript Part 1|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartI]
    [JavaScript Part 2|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartII]
    Use an 'if' condition, check the value and based on the value you can make the field hide/visible in the form.
    Hope this will help.
    Thanks & Regards,
    Sanoosh

  • Adobe Forms: date and number display format

    Hello all,
    I am new to Adobe Form, and I am quite unimpressed with how difficult it is to do the most simple things.
    I have managed one way or another to solve all my problems until now, but this one got me stuck.
    I have date and number fields in my form, and here is what I want to do but cannot (beware, it is impressive): I need these fields to be displayed using the defaults date and number settings of the SAP user who is generating the form.
    Anyone has an idea of how that can be achieved?
    Thank you.
    Moderator message: please post again in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Feb 24, 2011 1:53 PM

    Hi Thomas,
    For these kind of issues you will get many answers if you search the forum.
    If your requirement is to display the current date in the form, just drag and drop the "Current date" UI element from the Library palette -> Custom.
    If it is to get the date from SAP and display, pass date to the context node and just drag and drop the field into the form from the data view.
    Check the following wiki by Chintan. It explains some common scenarios in javascript.
    [JavaScript Part 1|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartI]
    [JavaScript Part 2|http://wiki.sdn.sap.com/wiki/display/ABAP/JavaScriptforCommonScenarios-PartII]
    Use an 'if' condition, check the value and based on the value you can make the field hide/visible in the form.
    Hope this will help.
    Thanks & Regards,
    Sanoosh

  • Portal Form: Number Format Mask Accepted Values

    Hi, i'm trying to format the way numbers are displayed in our forms, specifically instead of 50,000.00 we want 50,000 - without the .00.
    I cannot find anything on format masks in the portal documentation, and the standard oracle masks I have looked up such as "NNNN" etc don't seem to be supported.
    Trial and error has yielded a mask of : 99,999,999 which does get rid of the decimal, but introduces a problem where if the value is smaller than the mask it is shifted into the middle of the field (leading spaces are being added for every missing unit that is specified in the mask), but obviously if a smaller mask definition is used then larger numbers appear as ###### which is worse than the leading zero problem.
    Where in the documentation can I find the accepted forms of numerical number format masks for use in portal forms?
    Thanks..

    Let me know if you find a solution to this. I even asked my Oracle instructor and she couldn't tell me how to setup a date format mask. This is what she gave me which doesn't work, but I'm not saying I'm the quickest race car at the track. lol
    "Hi,
    Try the following format mask "("099")""-"099"-"0999. They have an example of this on page 7-12. I'm not sure if OTN may have a listing of any Forms format mask. Search under Forms Developer and see if you find anything.
    Take care,
    L"

  • Date and Cost formats in export toward Excel (2013)

    Hi,
    I'm trying to export Start date and Cost of my project tasks to Excel:
    File/Save as/ Excel Workbook...
    but all these date and cost data arrive in Excel with Text format. With the 2003 version, date and cost formats were well recognized.
    I'm using Project 2013 English and Excel 2013 English on a French Win 7.
    What are the settings (decimal separator...) which are needed to allow this feature ?
    Thanks

    Hi Julie,
    Thanks for your help.
    The "Convert to Number" feature works fine for the Cost.
    But the dates arrive as text with a long format such as "03 August 2015 08:00" and the  =DateValue(Cell
    reference) function returns an error : #VALUE!
    Any idea to retrieve the dates?
    Thanks again

  • How do you change the date and time format in Pages

    I've tried changing the date and time format a number of times for Pages but it does not change.  I'm going to the System Preferences/Language and Text and Formats.  I make the changes click on OK and go back to Pages.  NO change.

    Hi Uncle,
    Page 116 of the Pages'09 User Guide: Control Click the date, Edit Date and Time.
    Date and time can also be in a table. Format the table cell.
    The User Guide is well worth a read. Download it from the Help menu in Pages.
    Regards,
    Ian.

  • Fetching SAP Date and Time format

    I am using  "RFC_READ_TABLE"  function module  to fetch SAP table contents using JCO APIs. I need to know the date and time format to parse the values of date and time fields into respective java data types. (I am receiving these values in the form of string using above RFC)
    How can I get date and time format information from SAP server?
    Regards
    Amol

    Hi,
    Through T-Code SU01 in general setting tab   u can do the general setting for  date time, number format
    Type tcode SPRO and Got to general settings -> Define Countries then  restart the system.

Maybe you are looking for

  • How to set up a Toshiba external hard drive on my Macbook Pro?

    Hi there, I just bought a Toshiba external hard drive that says on the package it is compatible with Macs. I plugged it in, installed the Pogoplug PC for Mac (no idea what this is) and Tuxera NTFS for Mac (it was in the "Mac Driver" folder). Now what

  • Help with first flash game?

    Hi. My name's Rory. I am an artist. http://www.youtube.com/profile?user=PimpOfPixels http://roaring23.cgsociety.org/gallery/ I am learning action script and Flash so that I can make games. I am not a complete novice in programming. I am proficient in

  • Interactive PDF

    Hi, I'm working on creating an interactive PDF in InDesign CS5 and cannot figure out the best way to have buttons click to the appropriate page. It's a newsletter/article archive with an index at the front. The first couple pages list the articles in

  • Is it possible to move a book project from one LR5 catalog to another?

    I have spent days laying out a book on my laptop with low resolution jpegs in a temporary project catalog.  I wanted to export the book project in a project catalog and import it into my main catalog on my desktop to swap out the small jpegs with ful

  • Issues with Adobe Flash Professional CS6

    I have been using Adobe Flash Professional CS6 and have had a few issue with it. -The program crashes -The program stops responding quite often whilst I am working and will take a few seconds to load - It will sometimes glitch and my clicks will be d