How to determine if the Date Picker was selected?

I have a tabular form with columns of date type that are displayed as APEX Date Picker.
A user can enter the date two different ways; 1. Enter date by clicking in the field and type it manually. 2. Click on the calendar icon next to the field and select a date.
The entered dates are validated, and if invalid, should be replaced with the existing date.
This works fine for case 1 when a user enters the date manually using the following code in the Element Attributes.
  onFocus="savedData=this.value;" onChange="if( isDate3(this.value)==false){this.value=savedData}" The existing data is saved in the savedData field using the onFocus event and then used to replace the this.value if the validation fails.
But, for case 2, I get an error indicating that the savedData is undefined, which is true. This is because the user does not click into the field and triggering the onFocus event. Instead, the user clicks on the calendar icon next to the field that opens a calendar pop-up. For this case, if a user selects a date in the future, an alert is raised, and the date needs to be replaced with the existing date.
So the question is, is there a way to trigger an event to save the existing value if the user clicks the calendar icon next to the date field to populate the date?
Thanks,
DPATEL
Edited by: user4115675 on Feb 16, 2010 10:15 AM

Does anyone out there has any idea on how to do this? Any help would be greatly appreciated.
Thanks,
DPatel.

Similar Messages

  • How to determine if Transparent Data Encyption was installed

    Hello -
    How can I determine if Transparent Data Encryption was installed on a 10.2.0.3 instance?
    Thanks!

    It is installed, but you have to enable it as described in the doc:
    http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14268/asotrans.htm#sthref183

  • How can I customize the date-picker inline popup

    Hi All,
    I have a customer who want to customize the <af:inputDate>. He want a additional button appear under the calendar box in the date-picker popup.
    Document http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_inputDate.html mentions org.apache.myfaces.trinidad.convert.ClientConverter interface, is it a right way to do that ? If yes where can I get a sample ?
    Regards and Thanks.
    Jerry

    Hi,
    add the af:convertDateTime tag to see the exploded dialog. Note that this doesn't allow you to add custom buttons to the dialog. Its just extends the functionality
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_convertDateTime.html
    <af:inputDate label="Label 1" id="id1">
    <af:convertDateTime type="both"/>
    </af:inputDate>
    Frank

  • How do i replace the data that was previously on an iphone?

    I connected my sister's iphone to a computer via USB to download some photos.  Her husband's iphone data was on the computer.  Instead of just presenting the option to open the folder to view files in trying to access her phone all of his data was downloaded to her phone.  All of her contacts, settings etc are no longer there on her phone.  Please help.

    Thank you KiltedTim.  She is not a typical "syncer" or computer/phone interface person so only a few times, if that, has her phone been "synced".  And the time that I synced it I was not presented the option for anything related to her husband's phone so I highly did not expect anything but simply upload options.  He possibly placed his info on her netbook since.  Everytime that I have interfaced any phone to a computer, including hers, a Blackberry, a Samsung, etc., the screen that lists the options including "Open Folder to View Files" comes up automatically.  My understanding of the system prompt to recognize her iphone as it did her husband's was that it would relate the iphone interface software for the upload not replace her data with his.

  • How to adjust the Date picker size

    how to change the size of the Date Picker.
    I am using time inside the data picker and window is too small.
    I cannot see the OK and Cancel buttons.
    Let me know
    thanks

    It is an known APEX 3.1 issue metioned in the "Oracle Application Express 3.1 Known Issues & Limitations" Page([http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html]).
    There is a workaround posted in forum, see Re: Date popup problem in APEX 3.1 and this post was also mentioned in the "Oracle Application Express 3.1 Known Issues & Limitations" Page.
    JT

  • How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of

    how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • I have Time Machine that I used to back up my old computer. It was running snow leopard. My MacBook died, so I got a new one which is running Lion.  how can I restore the data from the time capsule to my new Mac?

    I have Time Machine that I used to back up my old computer. It was running snow leopard. My MacBook died, so I got a new one which is running Lion.  how can I restore the data from the time capsule to my new Mac?

    In technical support, sometimes you have to make educated guesses. I'm sorry that you were offended.
    iTunes does prompt when it is going to erase a device, and the message is clear.
    She said in her message that she was able to successfully sync the old ipad. This indicated to me that itunes wiping the data was not an issue, because either it had been setup at the apple store (in which case it doesn't actually wipe the ipad despite saying it will*) (*based on a single case I saw), or because the itunes media folder was migrated.
    Furthermore, my solution was to tell her how to backup her ipad (by either doing it manually, or as a last resort, by deleting the corrupt backup -- that she couldn't access anyway.)
    I got that last part of the instructions from the "Taking Control of your iphone" book which I found samples of when I did a google search for "corrupted backup itunes".
    She marked this as a solution, so it worked for her.

  • How do you know what the data usage was for and why?  It shows you date and usage but not the reason.

    How can you see what data usage was for on the bill?  It only shows the date and usage but not the reason for the usage.

    You can not see this info on VZW's site. There are apps for smartphones that will break down the info though, but by site or what was downloaded

  • How do you add a format to the "Date Picker Format Mask" available formats?

    Hi,
    When I select the Date Picker Format Mask or "Number / Date Format" they doen't have YYYYMMDD or others that may be desired...
    How do you add a format to the available formats?
    Thank you, Bill

    Bill - From the popup help text:
    If you need to create a Date Picker item, but the format you need does not appear in the Display As list, select Date Picker (use application format mask). When an application uses this type of date picker, the Application Express engine derives the date format from an item named PICK_DATE_FORMAT_MASK. You can populate this item in two ways:
    - By defining an application substitution string named PICK_DATE_FORMAT_MASK
    - By creating an application-level item named PICK_DATE_FORMAT_MASK
    See the doc for more details.
    Scott

  • How to disable the date picker in manualy Tabular form?

    I develope an application with apex 3.2 , I builded a tabular form manualy with APEX API and I have an item 'date picker' , I want that once user want insert the date , he can do it only by clicking on the date picker and not into the item
    I try to use the code that was provided by 'Desnes Kubicek' on his blog , but it does not works
    Any help!!!!!
    I used this code , but that is for an one item form
    <script type="text/javascript">
    function disFormItems(item1){
    disItem = document.getElementById(item1);
    disItem.style.background = '#eeeeee';
    disItem.disabled = true;
    </script>
    2. Region Footer javascript:
    <script type="text/javascript">
    disFormItems('P18_DATE_PICKER');
    </script>

    Hi,
    Try something like this
    SELECT
    APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy',12,15,'readonly="readonly"','f04_' || ROWNUM) hd
    FROM EMP;Thanks,
    Manish

  • How can I get a picture to display the date it was taken?

    How can I get a picture taken by my z10 to display the date it was taken?

    Gabrielamck wrote:
    How can I get a picture taken by my z10 to display the date it was taken?
    The only way to do so, is by manually renaming the picture
    Using the Playbook and the Z10 and the Z30 and loving them
    Martin

  • I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    I scanned an old photo but the date displayed is today, I want the date to be the date the photo was taken.  How do I change the date of the photo in iPhoto 11?

    There are two kinds of metadata involved when you consider jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    When you export from iPhoto to the Finder new file is created containing your Photo (and its Exif). The File date is - quite accurately - reported as the date of Export.
    However, the Photo Date doesn't change.
    The problem is that the Finder doesn't work with Exif.
    So, your photo has the correct date, and so does the file, but they are different things. To sort on the Photo date you'll need to use a photo app.

  • How to use the date picker in Web dynpro java

    Hi,
    I want to add date picker to enter a date while developing webdynpro application.
    How can i do that.
    Regards,
    H.V.Swathi

    Hi,
    its very simple...
    take a input field and map it to the attribute which data type is of "date". thats it at runtime you will see a input filed with date picker.
    i.e. Add an inputField and bind the context attribute of Type Date to it
    this will show the date picker on screen.
    PradeeP

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • HT4886 When I try to reinstall the Server App it just shows installed and the date it was purchased. How can I reinstall it?

    I bought a Mac Mini Server and after set up I realized that it was not set up as a mirrored raid system. So I followed the instructions on how to do that - this erased my drives. Restarted and reinstalled the Mountain Lion software but when I go to the app store it shows the server sotware in my purchases but there is no option for reinstall - it just shows INSTALLED and the date it was purchased.
    Ho do I reinstall my server app?

    Seems to have become available once again while downloading the update for Mountain Lion. I guess youjust have to wait a while for it to check your system and then make it available once more.

Maybe you are looking for

  • Itunes updated files and now I'm locked out - help

    So I just plugged my Ipod classic into the PC to charge it and Itunes opens up and says 'updating files'. The old files (over 20gb of music and movies) are still on it, but it looks in the usage bar to have compartmentalized them off. It then copied

  • How do I find and replace recurring images?

    I was wondering if I could find and replace recurring thumbnails in a document. I actually want to delete the specific thumbnail in mass.

  • Ringtone will not sync from iTunes to iPhone

    I downloaded a free silent ringtone, and dragged it into iTunes "Tones."  Then I synced my iPhone with iTunes.  I went to change the ringtone of an unwanted caller to silent, but it was not in the list. So then I went back into iTunes, and dragged th

  • Why can't I download preordered album

    IT says purchased on iTunes and I have the two songs that were available early so I know I bought it. It doesn't show up in my purchased or downloaded. On the album it has the show complete album option and when I click it each song has the buy butto

  • MDM PI adapter

    where shall i find the MDM PI adapter in marketplace? per the link http://help.sap.com/saphelp_nwmdm71/helpdata/en/48/97401a55493987e10000000a421937/content.htm I could not find the SAM MDM under SAP netweaver in <SAPNetWeaver u2192 SAP MDMu2192 SAPN