ADF 10g Allow Multiple Date Formats During Data Entry

We would like the ability to allow users to enter a date in several different formats. When they tab from the date field (or click out), we would like a custom java method (which we can write) to execute which analyzes what they typed and formats the date as MM/dd/yyyy. Can we do this and how do we get it to execute BEFORE any other validators and/or converters? A simple example is this: the user enters a forward slash (/) into a date field, they tab out, and we populate the date field with the current date.
Any help and/or ideas is greatly appreciated.
Thanks,
Tracy

Hi,
actually you will write your own converter and use this instead of the default converter. This is the way you do it. It also ensures that the timing between validation a conversion is fine
Frank

Similar Messages

  • PJC Calendar setDate Wrong date format. Date change failed?

    Forms 10.1.2 using forms demos pjc code.
    The calendar pjc I added to my form works except I can't initialize it with a date. If I try to initialize a date it always produces 'Wrong date format. Date change failed.' error.
    In a post-query trigger, I initialize the calendar's date using:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate',to_char(:lead.date_received,'DD.MM.YYYY'));
    In the java console, this yields:
    Warning: Wrong date format. Date change failed.
    Warning: Wrong date format. Date change failed.
    I get the same result when using a hardcoded date like:
    SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate','01.12.2006');
    What is the flaw in my incantation?

    Hello,
    This is the syntax used in the calendarpjc Forms demo:
        call the setDate method on the calendar PJC via the PL/SQL built in
        set_custom_item_property
        convert Oracle date to String recognised by Java
      procedure setDate(d in date) is
      begin
        set_custom_property(lGlobals.hCalendar,1,'setDate',to_char(d,'Mon DD, YYYY'));
      end;     Francois

  • Date Format of Date Picker in Webdynpro to be Changed according to Country

    Hi,
    I want to change the Date Format of Date Picker in Webydnpro accoding  to the portal users country.
    As each and every country has its own date format, i can't create simple types of date formats in Data Dictionary and bind them dynamically.
    Even the webdynpro date picker doesn't change according to the portal users country/locale, I tested with different countries for a portal user by changing in portal user profile.
    Please help .
    Regards,
    Aditya Metukul

    JUST WE HAVE TO CHANGE THE LANGUAGE OF THE USER

  • Java Scheduler - Illegal date format: Unparseable date:

    Hi,
    I'm trying to use JobBeans as described in http://help.sap.com/saphelp_nwce711core/helpdata/en/44/3b022e36634a8fe10000000a1553f6/content.htm and have a Date parameter to pass in from the Java Scheduler.
    My job definition file looks like:
    <job-definitions>
        <job-definition name="SetAgreementsExpiredJob" description="Updates status of expired agreements">
           <job-definition-parameter name="AgreementDate" data-type="Date" direction="IN"/>                             
        </job-definition>
    </job-definitions>
    When its deployed, I schedule the job to run, but as I hit finish (to schedule it) I get an error:
    The task was not added due to:Illegal date format: Unparseable date: "2010-09-03"
    The date I'm selecting is from the date picker on the Set Properties page. Any ideas on why this happens?
    Cheers,
    Russ.

    Well, for 720 the fix is in the 720 SP4, which is planned to be available soon.
    If you would like more details on the fix or a way to get this fix in your SP level, please open a CSN message in component BC-JAS-BTC.
    -Vladislav

  • Date format in Data Manager

    Hi Guru's
    Does anyone know how can we set up date format in DataManager?
    At present its MM/DD/YYYY..
    Whenever we put any date in field we can put  it in DD MM YYYY format but when we save it it comes as MM DD YYYY..
    How can we change this ..Any clues??
    Regards
    Vikrant M Kelkar..

    Hi Simona,
    When you say MDM supports format..Where does it support????? ..I think it supports only while importing ..
    My requirement was I want to display date format in Datamanger in DD.MM.YYYY.
    Even though you import date in DD.MM.YYYY format its still displays it in MM/DD/YYYY in dtatmanger..
    What you are saying is during Import and not in ADta Manager..
    Hope i have not confused!!
    Regards
    Vikrant M Kelkar..

  • Problem with date format using date picker

    In my application I provide to user ability to change date format. When using "MMM dd yyyy" format, the date picker paste to the inputbox something like "1111 07 2008" instead of "Nov 07 2008".
    To set the date format I use the following code:
    wdContext.nodeDateNode().getNodeInfo().getAttribute("date").getModifiableSimpleType().setFormat("MMM dd yyyy");
    I know that is known bug of date picker. But there should be other way to implement this functionality. Isn't it?

    Hi
    Check this link
    /message/6430993#6430993 [original link is broken]
    For more details
    http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/frameset.htm
    Thanks

  • Date Format in Data Manager (DD/MM/AAAA)

    Hello Experts,
    I have a problem with the date format in the MDM DATA MANAGER (Version 5.5.42.95).
    I have a field of type LITERAL DATE.
    When I see the Date in the DATA MANAGER, I see it in the format:
    MM/DD/AAAA
    I want to see the Date in the format:
    DD/MM/AAAA
    When I select the field to modificate his value, I suddenly see the date in the format DD/MM/AAAA.
    [http://i30.tinypic.com/2a7u4nr.jpg]
    But, when I end the modifications, i see it again in MM/DD/AAAA
    [http://i30.tinypic.com/30csuoy.jpg]
    Does anybody know how to solve this ?
    Thanks in advance,
    Regards,
    Mariano.-

    >
    Nitin Jain wrote:
    > Hi Mariano,
    >
    > Dates can be maintained in 3 different Formats in MDM.
    >
    > MM/DD/YYYY
    > YYYYMMDD
    > DD.MM.YYYY
    >
    > These 3 formats you can choose from Import Manager Configuration Options.
    Hi Nitin,
    This options don't change the way you see the date in the Data Manager, this options are only for the Import Manager.
    Thank you anyway for answering so fast.
    >
    Jitesh Talreja wrote:
    > Hi,
    >
    > Unfortunately there is no option available to change the date format in MDM Data Manager may be we expect this in the next release.
    >
    > Regards,
    > Jitesh Talreja
    Okey, thank you. I think this is a basic feature that MDM is missing, I hope they solve this in the next versions.
    I'm going to leave the question unanswered for now.
    Regards

  • Does Skype now allow multiple video chats during c...

    I was doing a Skype video call recently and I had a couple of people in the conversation.  One of the people had his web cam on and everyone else had their web cams off.  The person who had his on had some old plan or feature in place on his account that allowed for mulitple video chats in a call when Skype did not support that feature with newer accounts at the time.  All of a sudden, I saw a message appear on the screen about being able to add multiple video chats to my Skype call for free. Has Skype really gone and added the capability of multiple video conferences during a call?

    Group Video Chats are now FREE.
    https://support.skype.com/en/faq/FA10614/making-a-group-video-call-windows-desktop
    This has been the case since Premium service was disconnected (about ½ year ago):
    http://community.skype.com/t5/News-and-Announcements/Skype-Loves-Bringing-Groups-Together-With-FREE-...

  • Date format during editing in JTabel

    I try to set up the editing a date in a cell of a jtable. But the format of the displayed date turns into an unusable format:
    2001-10-01 00:00:00.0
    wenn i start the editing mode (double click).
    Is there no way to set the format in editing-mode? Have i to write a new celleditor just for this?
    I need: 01.10.2001
    I tried:
    Locale.setDefault(Locale.GERMANY);
    JTextField tmpDateEditFormat = new JTextField();
    tmpDateEditFormat.setLocale(Locale.GERMANY);
    tmpDateEditFormat.setBackground(Color.GREEN);
    table.setDefaultEditor(Date.class, new DefaultCellEditor(tmpDateEditFormat));Thanx for helping.
    MagLight

    I tried. But it ha no effect.
    Locale.setDefault(Locale.GERMANY);
    JFormattedTextField tmpDateEditFormat = new JFormattedTextField(new SimpleDateFormat("dd.MM.yyyy"));
    tmpDateEditFormat.setLocale(Locale.GERMANY);
    tmpDateEditFormat.setBackground(Color.GREEN);
    table.setDefaultEditor(Date.class, new DefaultCellEditor(tmpDateEditFormat));

  • Using different date format in Data tags

    What steps do I have to take to use dd/mm/yyyy as a format instead of yyyy-mm-dd?
    This goes for all data tags, data retrieval and manipulation.

    Steve Meunch posted a HOWTO: on this very topic. The address is http://technet.oracle.com:89/ubb/Forum2/HTML/006581.html.
    This should get you on your way.
    Remember that you can search OTN for specific topics including HOWTO topics. These topics are posted by developers, product managers, and others.
    I hope this helps,
    Gary

  • User input in date format in data form is not identified in BR

    Hi all,
    In a data form,user provide input for start month and end month against account members "Transfers Start_Month" and "Transfers End_Month".
    Eg:
    Transfers Start_Month = Jul
    Transfers End_Month =
    Nov
    When i tried to use the above 2 members in BR  as below,
    @MEMBER(@NAME("Transfers End_Month"->"BegBalance"->"SY_Forecast"->"MF04"))
    so that it should return the user input month.Eg:"Nov"
    Above method is not working and its not returning any months.
    I tried using CDF function as below,which also dint return the user input month.
    @MEMBER(@NAME(@HspDateToString("Transfers End_Month"->"BegBalance"->"SY_Forecast"->"MF04")))
    Kindly enlighten on how to handle this scenario.I need the user input month to be returned in BR.
    Thanks!

    Hi,
    Please find the below IF condition where we try to check if the period dim member is between "Jan" to the value entered by user in data form(Eg:"Nov"),then assign 200 to headcount.
    IF(@ISMBR("Jan":@MEMBER(@NAME("Transfers End_Month"->BegBalance->SY_Forecast->MF04))))
    headcount->SY_Forecast->MF04=200;
    ENDIF;
    In above script,@MEMBER(@NAME("Transfers End_Month"->Begbalance->SY_Forecast->MF04)) should return the value entered by user in data form(Eg: "Nov")
    Note: Jan to Dec are level 0 members of period dim
    Kindly enlighten if any additional functions/conversions from date to string i'm missing out.
    Yes,i'm using calc manager to write the rule.
    Thanks!

  • Multiple video format, 1 iTunes entry

    I have searched for this, and , can't seem t find an answer.
    I have multiple apple devices, and, like to rip my Blu-ray Discs to watch on these devices. I have an Apple TV , iPad, iPad mini and iPod touch.
    This makes for a messy iTunes library though. Because (using the movie batman as an example) in my iTunes library, I have the same movie, multiple times because I encoded it for several devices. It will be listen something like this:
    Batman (iPad)
    Batman (AppleTV)
    Batman (iPod Touch)
    So, my question is, is there a particular naming convention I can use where I can rip 3 different formats and  all three versions will roll up into one entry in iTunes where iTunes and my devices will be smart enough to use the correct file in different situations??
    Any amount of help I can get on this would be greatly appreciated :)
    Hope everyone had (is having) a great holiday :)

    Me too, all my movies are on Ext HDD with an alias pointing to them from the movies folder in my home directory but in itunes i do not know how to add any of them.
    The movies are in avi format DivX and Xvid.
    Any ideas?
    Cheers
    Edit...
    Ok got the files added but it copies them to my musc folder, is there a way to keep them in the original place on my ext hdd?

  • How to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : &amp;lt;af:convertDateTime&amp;gt;
    See also : convertDateTime Demo
    -Arun

  • Date format in table

    incorrect date format saved thru transaction spro>General settings>Currencies>Enter Exchange rates. date format entered is 98.98.9898 now the system wont allow you to maintain exchange rates without specifying correct date format for the entries. in tables TCURR i cannot get the entries as they are stored in nines compliment. how then can i delete the entries with abap script??

    Hi,
    use delete statement on TCURR table.
    ex:
    delete from TCURR where KURST = <your exchange rate type>.
    commit work.
    Reward points for helpful answers,
    Satish
    Message was edited by:
            Satish Panakala

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

Maybe you are looking for