Date Picker BUG on APEX 4.2.1

Hi all could you please open a ticket for the following bug.
Reproducing the bug very simple.
Apex specification :
version 4.2.1.00.08
I'm not using HTML 5 template but the classic "Blue and Tan" one.
1) Create a page with date picker with mask (DD-MON-YYY HH24.MI).
2) set as default value the SYSDATE using the PLSQL expression (not specifying the mask to_char()).
3) Try to use it and you will see that the year shown is not the correct one but is something like 1911.
I fixed using to_char(SYSDATE,'DD-MON-YYY HH24.MI') in the PLSQL expression.

Hi Zere,
one very important thing to remember when dealing with session state (the value of a page item) is that everything is stored as string.
If you specify SYSDATE as your default expression, then the Oracle database will evaluate that as date data type, but as soon as it's stored in session state, the database will do an implicit data type conversion using the default format mask specified for your database session.
That's why it works when you do the TO_CHAR with the explicit format mask.
Regards
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Edited by: Patrick Wolf on Apr 10, 2013 3:37 PM

Similar Messages

  • Date Picker problem in Apex 3.1

    Hi,
    I upgraded my apex to 3.1 and found that the date picker icon behaviour become quite strange.
    If I set the label of the date picker Horizontal/Vertical Alignment to Above, the picker icon will show below the text box instead of right side. And the pop-up calendar for Date Picker (DD-MM-YYYY HH24:MI) also not high enought to show the Close and OK button, I have to manually adjust the pop-up calendar height.
    All this problems were not there in 3.01, is these some kind of bug?
    Thanks
    Vincent

    Hello,
    Can you put an example of your particular layout on apex.oracle.com. The solution I had worked in most of the case's I tested , obviously yours is different.
    The next best solution would be to either shim the items with images, or to specifically set the widths of the containing table cells.
    The reason all this is happening is sometimes , depending on the region templates and CSS the regions will collapse down on the content, and the the browsers will do there best to fit the content in the smallest place possible, Unfortunately, in some cases the browsers ignore both nowrap="nowrap" and/or style="white-space:nowrap", why would I want to put nowrap on something and still have it wrap, I don't know it's not me it's the browsers.
    The solution in the patch I'm leaning towards is wrap item into a table. As it will work perfectly everywhere , and greatly annoy people that want tableless layouts, but that won't be available till the patch.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Date Picker problem in APEX 4.1

    Hi,
    I have developed one application in ApEx 4.0 and imported it in ApEx 4.1. In ApEx 4.1, while clicking the Date picker field (on calendar icon) the application is started giving below error :
    Message: Unable to get value of the property '_curInst': object is null or undefined
    Line: 17
    Char: 1448
    Code: 0
    URI: http://*********/i/javascript/apex_4_1.min.js
    I have gone through the below OTN link,But I do not have such scenario which has been discussed over there.
    Apex 4.1 IR: $.datepicker._curInst' is null or not an object
    Other scenario which I have tried:
    In ApEx 4.1, Created a new application with one page having date picker, it is working fine. If I copy/import this page in my old application(which was imported from ApEx 4.0) then the date picker is showing the above error.
    NOte: We are using IE 8 & 9.
    Regards
    Mohan

    Hi,
    We found the problem. The problem is due the file 'jquery.min.js' file we have uploaded in shared components --> images. Once we deleted then it is working fine.
    Regards
    Mohan

  • Calendar Data Picker bug or problem

    Hi all i am having a problem with the calendar component.
    here the context:
    tool: Sun Java Studio Creator 2
    framework: Java Server Faces
    i put several components, on the page, and several buttons.
    i insert code in the button action of every button on the page, i test the applicaction, everyting works. i put a calendar on the page, i test the application withouht even clicking on the calendar, everything work. the moment i click on the calendar to pick a date, it works, but from that moment none of the button action code is even called, because i tested the application in debug mode with code breakpoints and none the breaks stoped. can anyone related to this situation regarding the calendar, and if you do, how did youto solve it. Thank you in advance.
    best regards

    Hi!
    If I've understood You rightly, button actions are not called after You pick a date.
    Put "Message Group" component from Basic section to the page with "Calendar" component and look what system message will appear.
    Probably the reason is that You select date before current and by defauly minDate for Calendar component is current. So probably You just should set minDate.
    Thanks,
    Roman.

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • Custom Date Picker

    Hi,
    Is it possible to customize the date picker so that the calendar is flat based, i.e. the calendar just shows up next to the calendar image instead of appearing it in anothe window?
    Regards
    Venus

    Well, i got a date picker created from APEX, and obviously to modify it, I will need to change the javascript call. But I'm not sure where i can edit this.
    coz my date picker is calling a javascript function getcal0_p_t03_8() and i don't know where i can change this as i don't see it anywhere in my items

  • Date Picker edit HTML

    Hi all,
    I want to edit the HTML code of date picker item. How can I do that? In fact I want to remove the alt and title attributes, or replace their values.
    Thanks in advance!

    First of all your question does not give an clear idea or details!
    There are two types of Date picker item in ApEx:
    1) Date picker (classic): which opens as a different dialog box.
    2) Date picker: this is the newer one based on jQuery and by default is created in ApEx 4.0
    Coming to your question try this:
    In the "HTML Form Element Attributes" of your date picker item enter the following
    alt="" title="" or
    alt="altvalue" title="titlevalue" in case you want to replace.

  • Select list and date picker on one line  -  is this a bug?

    I'm using: Application Express 3.2.0.00.27
    Is the following a bug? If so, how do I get it reported so it will be fixed in a future release of APEX? If not, how do I do it so it ends up the way I want?
    1. create blank page
    2. create html region
    3. create "select list" item (Begin On New Line - Yes, ...Field - Yes, ColSpan - 1, Row Span - 1)
    4. create date picker item (Begin On New Line - No, ...Field - No, ColSpan - 1, Row Span - 1)
    There will be other items displayed in more columns above what I just had you create above. I want the select list and the date picker to display next to each other on same line, so I placed date picker item on same line in same field as select list item.
    HOWEVER... the date picker ends up displayed under the select list item (kind of), instead of next to it on the same line.
    Here's what I get:
    ...................... [Select List Field] Date Picker Label
    Select List Label
    ...................... [Date Picker Field]
    Here's what I want:
    Select List Label [Select List Field] Date Picker Label [Date Picker Field]
    Thanks,
    Steve
    Edited by: sskelton on Aug 3, 2009 11:01 AM
    Edited by: sskelton on Aug 3, 2009 11:02 AM

    Hi Steve,
    I'm not sure if it's the official way, but you could add a post here: Enhancement Request Thread : Post 3.1 - that's what I've been doing :D
    Andy

  • Apex 3.1 Upgrade Issue - dba_lock and date picker display

    A couple of minor issues I've seen with my upgrade from 3.0.1 to 3.1. Just wondered if anyone else has seen them and if anyone has a simple fix for the date picker problem :
    1. DBA_LOCK - the upgrade process itself complains about the SYS.DBA_LOCK view not existing - easily remedied by running catblock.sql before you start the upgrade (but not listed as a pre-req)
    2. DATE PICKER display - I have a date picker item in a navigation region - before the upgrade the calendar icon happily appeared directly to the right of the date cell, since the upgrade the icon has moved to underneath the cell, messing up the look and feel. (Also the size of the pop up calendar doesn't quite fit its contents now and you have to resize to see the close and ok buttons )
    Any confirmation that others can replicate the second issue or a quick fix would be very helpful.
    Many thanks,
    Rich.

    Rich,
    >> Unfortunate that something has changed between 3.0 and 3.1 then that will require us to change the formatting. Hopefully not too much work to sort out a form region that looks the same though.
    I know the templates were revised for APEX 3.1, but that should not have affected existing applications. So you're saying that application used a Navigation Template before just fine without issues? I'll ask Carl to investigate.
    >> The issue of the default size of the pop up window cutting off the buttons at the bottom still remains in your example however. (obviously users can resize it but not ideal)
    Well, that really sucks. The worst thing we can do is break the behavior of existing applications, and it appears we've done it here. I filed Bug 6864371 on this issue. We'll get it fixed in the very first patch set for APEX 3.1.
    Joel

  • Date Picker shows displays wrong timezone after Apex 2.2 upgrade

    After upgrading from 2.0 to 2.2, all date pickers in all applications now display the time in GMT instead of GMT - 7.
    For example: before upgrade 08/03/2006 9:00 -- after upgrade 08/03/2006 16:00.
    The date and time on the server is set to GMT - 7. The database displays GMT - 7 in all other non-Apex apps.
    I suspect there's a global preference that needs resetting, but I can't find it.
    Cheers,
    Jaime

    Hi Jaime,
    What you are witnessing is a feature and not a bug. Shame on us for not making this change in behavior more prominent. But this feature ultimately emanated from the posting at:
    Re: Date Picker and timzone
    In Application Express 2.2, if you are using a DatePicker, the current date and time will be computed based upon LOCALTIMESTAMP. LOCALTIMESTAMP is time zone aware. By default, it will use the database's time zone.
    To control the user's time zone setting in your application, you could add a before-header application-level process (and, ultimately, another one on Submit) to issue a PL/SQL statement like:
    execute immediate 'alter session set time_zone = ''America/New_York'' ';Note:
    1) Those are sets of two single-quotes around America/New_York, not double-quotes
    2) Obviously, you'd replace America/New_York with your favorite time zone. The full list is at:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm#sthref2012
    As a quick demonstration, run the following block in SQL Commands on apex.oracle.com or your favorite APEX instance:
    begin
        dbms_output.put_line( 'LocalTimestamp Before: ' || localtimestamp );
        execute immediate 'alter session set time_zone = ''America/New_York'' ';
        dbms_output.put_line( 'LocalTimestamp After: ' || localtimestamp );
    end;
    /I hope this helps.
    Joel

  • Apex 4.2: Date picker & format mask number

    Hello
    In Apex 4.2, in a Date Item, how can I modify the date picker to set Monday as the start of week day? I can set Monday as the start of week day on a calendar, but not in a Date Item.
    In a Number Item, there's no format mask to set the comma char as a decimal separator and the dot char as a thousand separator. How can I create a new format mask number?
    Thank you.
    Edited by: user7034195 on 12-mar-2013 3:24

    for the Date Item, you can check this link, you have to call the process on the page load
    http://stackoverflow.com/questions/1313317/set-start-day-of-the-week-in-jquery-ui-datepicker
    and for the Number format, there's a little trick involved, will try to explain
    First of all convert you items from Number field to simple Textfield.
    1. Write this in your items Post Calculation Computation: TO_CHAR (:item_name, '999G999G999G999G990D00', 'NLS_NUMERIC_CHARACTERS = '',.''')This will do the number formatting you want, but in oracle above format is not acceptable, so while submitting the above values to database we need to undo the changes for that you can use the below code.
    2. Create a Computation "After Submit" for every item you did the above formatting and copy this code in it: replace(replace('1.00.00,00','.',''),',','.') for the 2nd step you can create a package/function which will get the items value as string and do the conversion as number using above code and return back the number.
    This should help you.
    Regards,
    Tauceef

  • Date Picker visbile by default in Apex.

    Hi All,
    I have created two date pickers by default i will be dsiplaying only one, but when they click on that link i wil diplsay the other date picker report.
    I have created demo in my application but that is showing fine in 4.0 version but when i had tried in lower version 3.0 the date picker calendar is showing by deafult. But no erros are dsiplayed in script.
    Can you please let us know how we can hide the samll part of calendar icon.
    Here is an examplei had created whcih is replaicted what i had done im original application.
    workspace-apex_demo_bosu
    [email protected]
    password-bosuseshu
    URL is http://apex.oracle.com/pls/apex/f?p=19104:1:246873615402401:::::
    Thanks,
    Anoo..

    I realized you were talking about a form with an "Automatic Row Fetcher" after I had clicked submit;
    Let me see if I can understand this:
    you have a date column in your table (I hope it is a date)
    you have created a "form on a table" page that has an Automatic Row Fetcher process in it.
    If the row you are displaying has a value for the date column, you want that value to show up in the Date Picker item type (this should already happen)
    If the row you are displaying does not have a value, you want the Date Picker to have a default value of sysdate. (eg a NEW row of data)
    If #3 is not happening, let us know.
    #4 just requires a process that runs after the Automatic Row Fetcher.
    eg
    begin
      if :P11_DATE is null
      then
        :P11_DATE := to_char(sysdate, 'DD-MM-YYYY');
      end if;
    end;
    I'm sure there is  better way to do it.  I just don't know it right off.
    Mk

  • Better date picker for ApEx 3.2?

    One of my least-liked features in ApEx 3.2 is the poor performance of the date picker popup. It redraws whenever the user changes the month or year, and it takes so long, that I've found most of the time, a user will change both fields in the time it takes for the first one to take effect, so the second change ends up being ignored.
    Ideally, I would like to find a drop-in replacement for the built-in date picker that will do everything in JavaScript, within the window, and bonus points for some additional validation options (like min/max date). The date picker in ApEx 4 is actually perfect, I think.
    So, my question: 1) Has anybody tried to backport the date picker from ApEx 4 into an ApEx 3.2 application? Can this be done without substantial rewiring of the calling page? 2) If not, can anybody recommend a good replacement for the built-in one in 3.2? Again, my goal is to just replace the JavaScript call on that form element with a different one, and require no other changes to the page.
    Thanks,
    Keith

    Thanks, Dan -- you mentioned this in another thread, too, and I was just starting to look into whether I could simply drop in this datepicker in place of the one in ApEx. It looks like I can, but if you're verifying that this is the case, then this definitely meets my needs, and I'll eagerly start looking into this.
    Still, I think it would be cool if someone backported the one in ApEx 4. That one is so much nicer! :-)
    Cheers!

  • Bug in Date Picker..urgent

    Dear All,
    I ma working with OAF 5.7h.
    I am facing a strange problem.
    I hav a date picker,the one where u hav a date icon on clicking of which the dâte picker opens up in a secondary modal window with the month and year in individual pulldown lists, [Month] in first pulldown list, [Year] in next pulldown list.
    Now whenever i scroll thro the Month pulldown list and try selecting February from the Month [first] pulldown list,it alwayz returns the next month (ie ) March in the list(whenever we choose any month from the month pull down list the secondary date window refreshes and puts the selected month as selected in the pulldown list).
    The year pull down does not cause any such behaviour.
    Its fine with all the months except February.
    So unfortunately the user can never select the month Feb,it alwaz return March in the list.
    I tried to see the html code in the explorer.View ...Source and i saw that the value attribute in the HTNL tags for both the months Feb and March is same.
    So whether i choose Feb or March it displays March...
    How can i change this because what i understand the value is generated dynamically for each month in the javascript for the date pop up.
    Any help would really be great..
    Thanks

    Hi Sharon,
    So, It's not a bug it's a feature … :)
    IMHO, or to be more exact, in my users opinion, the current behavior is not good enough from a user interface point of view. We are all use to see some noticeable reaction when we are pressing on a link, button etc. The current response to choosing another day is not noticeable enough, and can cause some confusion. I would expect the newly chosen day to be colored. If you think that the current date should also remain marked, you can use another color.
    If you use this in a form with a value already set you will notice that it is not the value of the item that is in grey, it is sysdateYes, I've notice that, and in the case that sysdate is not in the current displayed month, nothing is colored. I find this behavior also to be a bit confusing. I think the date picker value should be marked.
    I would appreciate if you'll consider this thread as an enhancement request.
    Thanks,
    Arie.

  • Editable and Read-Only Date Picker have different display formats -- Bug?

    Hi all,
    This is a follow on to a previous posting about getting a Date Picker field to display read-only (Date Picker and Read-Only Condition works on LAST state of element
    Now past that hurdle, I have noticed something about the date picker field when it is displays read-only. Namely, the date format is not the format selected, nor does the read-only date format comply with the format mask in the source section.
    I've modified my small test app to work as intended in order to demonstrate this feature. I also opened it up so everyone can see it <blush>. You can find it here: http://htmldb.oracle.com/pls/otn/f?p=42513: Please navigate to the Update Project tab.
    When a project in Program One through Four is selected (which has a Spec Committed date), the date is displayed DD-MON-YY format. When a project the other Programs (which do not have Spec Committed dates at the time of this writing) are selected, and a date value selected with the date picker, the date is displayed in the anticipated DD-MON-YYYY format.
    Anyone else notice this, or have I just missed something obvious?
    Thanks,
    Petie

    I'm not sure why this happens but to work around it I added this before header process code to the page:
    execute immediate 'alter session set nls_date_format = ''DD-MON-YYYY''';
    Scott

Maybe you are looking for

  • How can I Resize Two or More Shapes At The Same Time?

    I've got text over a rectangle over another rectangle. When I change my text, the size of the boxes needs to change and it's a drag ot have to do each one separately and constantly realign. Is there a way I can resize both of them at the same time to

  • Mp3 and aac file formats

    Well, I made a playlist on my shuffle...Then when I was playing it It seemed it skipped over all the aav files and only played the mp3. So when I hooked up the shuffle to the computer all the mp3 files were at the top and the aav were at the bottom!

  • BPC 10.0 NW - Change technical cube name during transport

    Hej gurus, One of our users have run a full optimization, and therefore the technical names of the cubes in DEV and PRD are no longer the same. We have looked at the SAP notes, and found the following. 1689814 – "Stabilize InfoCube's technical name i

  • How to design a 3D database in SDO

    Hi, I need to design a 3D database in Oracle9i SDO. As we know, this SDO support the 2D GIS seamlessly. How to design a 3D database in Oracle9i SDO, Could any person have some experiences. Thanks! Best regards!

  • HT1657 I am going on a 2 hour flight. Do I have to be connected to the internet to play the movie?

    I want to rent a mivue on my MacBook to watch while I am in an airplane. I will not have an internet connection. Can I watch the movie without an internet connection?