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

Similar Messages

  • 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

  • How can I use java.util.Date and change display format.

    Hello All,
    I want to use java.util.Date in View Context and in Custom Control Context of Web dynpro java. When i mapped of a Input Field to the java.util.Date then message shows that its not supported. Plz suggest me how to handle Date with different formats ??

    If you always want the user to enter the date in dd/MM/yyyy, you can do the following.
    Goto Local Dictonary -> Simple types in your project and create a type known as "InputDate" (or whatever you feel) of built-in type 'Date'.
    Now specifiy its format in the 'Representation' tab as "dd/MM/yyyy" (case-senstive).
    Now declare a value attribute say "inputdate" in your context with this type and bind the inputfield to this context value attribute.
    This will solve your problem.
    But if you want the user to input date depending on the region he belongs, change the default locale date in Control Panel->Regional and Language Options->Change to English(UK) -> Customize -> Date Tab -> Sort Date Format to dd/MM/yyyy.
    Now clear the cache, delete temporary files and restart the machine. This should solve the problem.

  • 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

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

  • Calculate end date from inputs : start date and number of months

    Hello Experts,
    I have a start date and number of months from which i need to calculate the end date.
    For Eg: start date = 03-12-2008
                no. of months = 48
          Ans: end date = 03-12-2012
    Please help me.

    requirement is no different from what is stated in the previous thread.
    To elaborate further, I'm looking for some Function Module or some relevant alternative to calculate the future date.
    Future date is calculated using a start date input and No. of months.
    As stated in the example in my previous thread.
    For eg:
    Inputs to FM    : Start date        : 03-12-2008
                                    No. Of months : 48  months
    Output from FM: Future Date     : 03-12-2012
    Looking forward for your reply.

  • 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);

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

  • Default format pattern for Date and Number

    Hi everybody,
    I'm finding it very hard: my java app runs on Tomcat 5.5, I'd like to format dates and numbers with a specific format. For example: with Locale it_it date format is "dd-mm-yyyy", my wish is to display "dd/mm/yyyy" without changing the Locale (it_it is correct). Is there an env variable to set?
    Thanks.

    gianoele wrote:
    How cai I set with a proprerty? Like -Ddate.format="dd/mm/yyyy" -Dnumber.format="###.00"?You could do that.
    Then fetch it from your app and feed it to SimpleDateFormat.

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

  • Phone number display format

    We are looking for a way to personalize the display format of phone number.
    I am at a company where there is a SAPphone or alike software connection to auto-dail using the SAP screen. Other then most companies here this is done from ECC rather then from CRM.
    For this, the Phone numbers are stored flat, without spaces, hashes and the like.
    In SAP there are setting for how to display date and numbers. I did not yet find a way to do the same with phonenumbers. There is an international requirement on how to display the numbers, and storing these numbers formatted is in my opinion not the preferred way to do it.
    There are function modules to format the numbers from flat stored numbers, but that will mean cloning standard transactions to Z versions so that the FM can be used. I would rather not do this too.
    Anyone any ideas?

    I am having the same issue with My Treo 700.  Did anyone find a resolution to this problem.  I think it is more than annoying.  For no reason the formatting just changed. 
    Thanks for you help.

  • Locale Date and Time display

    Hi,
    I don't know if this is possible with Flex. I would like to
    read user's regional settings (from his operating system) for
    displaying date and time and then display these values in according
    format. So how do you read those settings from the user's OS? Is
    there a way?
    thx in adv

    You cannot read OS setting using Flex. Maybe you can do it
    using AIR. For Locale aware date time format have you looked into
    Date.toLocaleString(),
    Date.toTimeString(),
    Date.toLocaleTimeString(),
    Date.toDateString(), and
    Date.toLocaleDateString()
    methods?

  • Number Display Format

    Number display.  At the top of the phone is a 10  digit phone number all mashed together.  I’ve seen documentation that indicates  that this can be displayed in a more readable format (XXX) XXX-XXX. I’d llik to know  how to control how this is displayed. example 4087632345 vs  (408) 763-2345

    The number displayed at the top right corner of the phone is based on the External Phone Number Mask configured on at the line level for the primary line of the phone.  However, the characters allowed are 0-9, +, *, #, and X.  The individual line text (displayed next to each configured line/button) can be formatted as text but that doesn't seem to be what you are referring to.
    Hailey
    Please rate helpful posts!

  • TS3920 Date and Time display

    The smaller time in the header of my iPad4 is accurate, but the larger date and time in the background at the top is wrong. I think it may be the date I bought the iPad. The calendar app is correct as well as the date and time in settings. How do I change the larger display on the home screen?

    The time only appears on the top bar of the iPad's screen, the date is only on the icon of the Calendar app. If the date and time are showing on the screen itself then it might be on the wallpaper that you are using as the background image - try going into Settings > Brightness & Wallpaper and change the wallpaper

Maybe you are looking for

  • How to get rid of thumbnails in conversations in Lync 2013

    After the last update Lync 2013 shows thumbnails next to every IM in the conversation window. Is there a way to get rid of these? I couldn't find anything in the options. It takes up a lot of space and is completely useless for me, as admin has disab

  • New Div Problem

    Hey again. This time, I've encountered an issue where I have placed four divs into a main div container. The four inner divs are all behaving well and responding to my margin call-outs, and offetting from each other, or the top, as they should. Howev

  • Can't Start Mnagement Server !

    Hi, I'm running Oracle8i vers.8.1.7.5 on a Windows2000 server with patch5 applied. Whenever I try starting my management server it doesn't start and as a result I cannot invoke my OEM console. Please, what do I do to start the management server ? Tha

  • PHP Help needed

    Hi there, DW 8.0.2, php and mySQL How does the coding look in php when I want to say: 1. "Show when session is empty" 2. "Show when session is NOT empty" I know how to do in ASP but not PHP. I want the login part of a page to show when the session is

  • I have 15.00$ on my Apple ID account and I'm trying to buy a 13.99$ Album and it keeps telling me I have insufficient funds.

    How do I have insufficient funds?! I've tried calling Apple but they're tech support is "on break".