APEX 4 - Bug - default jQuery UI Datepicker - minDate maxDate

Hi,
I came across a strange bug in my dev environment and I was able to reproduce it on apex.oracle.com.
http://apex.oracle.com/pls/apex/f?p=696969:1
All datepicker items (even in tabular form) following a datepicker item with a minDate and maxDate will share the same date range.
Thanks in advance to the APEX dev team.
Louis-Guillaume
http://www.lgcarrier.com
http://www.apexframework.com

Hi,
Thanks for the support.
Here's a piece of JavaScript code that I run on page load using a Dynamic Action.
function set_date_pickr_read_only() {
apex.jQuery("input[name='f03']").attr('readonly','true');
set_date_pickr_read_only();
gNewRowDatePicker = 'apex.widget.datepicker("#f03_0000", { buttonImage: "/i/asfdcldr.gif", buttonImageOnly: true,"buttonText":"Calendar","minDate":new Date(apex.item("P3_MINM_WEEK_DATE_JS").getValue()),"maxDate":new Date(apex.item("P3_MAXM_WEEK_DATE_JS").getValue()),"showTime":false,"defaultDate":new Date(apex.item("P3_MINM_WEEK_DATE_JS").getValue()),"showOn":"both","showOtherMonths":true,"changeMonth":true,"changeYear":true}, "DD, d MM, yy", "en-ca")';
addRow_orgn = addRow;
addRow = function() {
addRow_orgn();
set_date_pickr_read_only();
apex.jQuery("input[name='f03']").datepicker("option", "minDate", new Date(apex.item("P3_MINM_WEEK_DATE_JS").getValue()));
apex.jQuery("input[name='f03']").datepicker("option", "maxDate", new Date(apex.item("P3_MAXM_WEEK_DATE_JS").getValue()));
Louis-Guillaume Carrier-Bédard
http://www.lgcarrier.com
http://www.apexquebec.com
http://www.apexframework.com

Similar Messages

  • Datepicker mindate based on another item

    Hi,
    Is it possible to change the mindate property of a date picker based on the value of another item? For example:
    P01_ITEM1 = datepicker
    P01_ITEM2 = datepicker
    I would like to set the mindate property of P01_ITEM2 as the selected date of P01_ITEM1.
    Is this possible? I'm using Apex 4.0.2.
    Thanks!
    Edited by: abrantesfilho on Mar 24, 2011 5:06 AM

    Hello Abrantes,
    Sorry for the delay on the answer, I was making some research about the Date Pickers...
    Try this;
    Create a Dynamic Action
    Action: OnChange
    Selection Type: Items
    Item: Select the 1º DP (Date Picker)
    Action: Execute JS code
    Fire On Page Load: Yes
    Code: $("#DP2_NAME").datepicker("option","minDate",$v('DP1_NAME'));
    Affected Elements:
    Selection Type: Items;
    Item: 'DP2'
    I got the idea from: Re: APEX 4 - Bug - default jQuery UI Datepicker - minDate maxDate
    Regards,
    Alan Martini

  • Roll Your Own - APEX 4.0 and JQuery-UI Application

    For those with a apex.oracle.com account and want to see jQeury tabs running via 4.0 in your own Workspace, use following this script to create your own version of Shijesh's (Apex_Noob) application.
    Credit also goes out to Alistair Laing for his hard work in investigating why 4.0 is requiring the use of the googleapis jquery.js... libraries.
    Application Builder - Create
    Application Type - Database
    Create Application - From Scratch
    Name - jQuery Application
    Add Page - keep default and Click Add Page
    Click CreateMy application defaulted to Theme 2, you will need to switch the theme to one of the following: If you don't the tabs will not render properly.
    8 Orange
    10 Sand
    13 Classic Blue
    14 Simple Green
    15 Light Blue
    16 Dark Blue
    18 Simple Gray
    19 Red Gray
    Message - Application created successfully.
    Click Shared ComponentsUnder User Interface Click - ThemesIf you don't see one of the above Themes, you will need to Create and switch your Theme.
    Click - CreateFrom the Repository selected Click - Next and select one of the above Themes
    Click - Switch ThemeSelect one of the above Themes and Click - Next
    Click -NextClick - Switch ThemeReturn to your newly created Application by Clicking on Application xxxxxxx Breadcrumb
    Click - Create PageSelect - Blank PageClick - NextAssign the page a name
    Click - NextAccept defaults and Click - NextClick - FinishClick - Edit PageI still work in Component View, to toggle to this View, click on the control adjacent to Page number and Go button. Hover over the ones on the far right and you will see both Component View and Tree View
    From Component View
    Click on the Page Edit Control
    In the Text Area labeled Javascript/Execute when Page Loads - paste in the following code:
    $x("tabs").appendChild( $x("tabs-1"));
    $x("tabs").appendChild( $x("tabs-2"));
    jQuery("#tabs").tabs();In the Text Area labeled HTML Header and Body Attribute/HTML Header - paste in the following code:
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/redmond/jquery-ui.css" type="text/css" />
    <script src= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.js"> </script>Click - Apply ChangesRequired use of the Google jqueryui libraries is being questioned by recent threads created by Alistair Laing since it appears that 4.0 does not currently support jQeury tabs
    {thread:id=1083507}
    {thread:id=1083540}
    Create a Region
    Type HTML Text - accept defaults
    Provide a Title like "Tabs" and accept defaults
    Template - Reports Region
    Sequence 10
    Click - NextIn the Enter HTML Text Region Source: Text Area - paste in the following code:
    <div id="tabs">
    <ul>
    <li><a href="#tabs-1">Employees</a></li>
    <li><a href="#tabs-2">Departments</a></li>
    </ul>
    </div>Click - Create RegionCreate a second Region
    Type Report/Sql Report
    Provide a Title like "Employees" and accept defaults
    Template Reports Region
    Sequence 20
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT empno,
           ename,
           job,
           mgr,
           hiredate,
           sal,
           comm,
           deptno
    FROM   empClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-1Click - Apply ChangesCreate a third Region
    Type Report/Sql Report
    Provide a Title like "Departments" and accept defaults
    Template Reports Region
    Sequence 30
    Click - NextIn the Enter SQL Query or PL/SQL function returning a SQL Query: Text Area - paste in the following code:
    SELECT deptno,
           dname,
           loc
    FROM   deptClick - Create RegionEdit the newly created Report Region
    Under Attributes/Static ID - paste in the following code:
    tabs-2Click - Apply ChangesRun you page and you should see you tabs.
    Jeff

    Great post Jeff,
    With regard to Jquery UI and tabs I've contacted the Apex dev team and received a reply from them.
    All the jQueryUI files are included in the APEX 4.0 distribution, but not all jQueryUI components
    are loaded by default to avoid a huge initial download. It's not necessary to load your own version of jQueryUI, just load the missing component.
    For the "Tabs" you have to add
    <link href="IMAGE_PREFIX#libraries/jquery-ui/1.8/themes/base/jquery.ui.tabs.css" rel="stylesheet" type="text/css" />
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8/ui/minified/jquery.ui.tabs.min.js" type="text/javascript"></script>
    to your page template or the header attribute of your page where you want to use it.They did not mention which other Jquery UI widgets were not included so people need to check to see if they get any JS errors Like "$('#tabs').tabs() is not a function" this would suggest that tabs is not being loaded. To included it in you page header directly after #HEAD# you need to place the css and js as stated above.
    If you need jquery help just post you queries here or the is some other jquery links that maybe of some use
    jQuery
    http://jquery.com/ - Official jQuery Website
    http://api.jquery.com/ - jQuery API Library
    http://plugins.jquery.com/ - jQuery Plugins (Not APEX related)|
    http://yayquery.com/ - yayQuery - jQuery Podcast
    http://jqueryui.com/ - Official jQuery UI Website
    http://jqueryui.com/demos/ - jQuery UI Demos
    Edited by: Alistair Laing on Jun 9, 2010 4:04 PM
    Add more links
    Edited by: Alistair Laing on Jun 9, 2010 4:09 PM

  • JQuery UI datepicker problem from v1.9.1 to 1.10.0

    I'm replacing the Interactive Report datepickers with new jQuery Versions..
    Since I upgraded an application from jQuery UI v1.9.1 to v1.10.0, I'm having an issue with two textboxes that I are being used as datepickers.
    The textbox (when looking via Firebug) has the "hasDatepicker" class and the image to the right of the box has the "ui-datepicker-trigger" class, but they don't bring up the calendar when clicked.... 
    It is only in one application that I am having the problem, and it is a weird case because it is using Oracle Application Express 4.0 which supplies jQuery 1.6.2 and jQuery UI 1.8.14, so I think there is some kind of conflict that is going on...
    I'm using 1.10.0/2.0.1 of jQuery and 1.10.3 of the jQuery UI..  If I change back to 1.9.1 of the UI the problem goes away...
    http://apex.oracle.com/pls/apex/f?p=datepickerworks
    http://apex.oracle.com/pls/apex/f?p=datepickerbroke
    Login:  test
    Password:  test
    Steps:
    Click Hiredate column header
    Click Last 5 years
    Click Hiredate is in the last 5 years link
    Change "is in the last" to "between"
    Clicking the Date Field or the Calendar images should show datepicker
    Let me know if you have any issues using it.

    It appears added the bolded line fixes the problem on the application on Oracles Apex WebSite, I have yet to get it integrated correctly into my application though.....
    var imgPrefix = 'wwv_flow_file_mgr.get_file?p_security_group_id=12106466410237088125&p_fname=';
    $(document).ready(function ()
    apex.jQuery = jQuery.noConflict();
    $('#P1_JQUERYVERSION').val(apex.jQuery().jquery+'/'+$().jquery);
    $('#P1_JQUERYUIVERSION').val(apex.jQuery.ui.version+'/'+$.ui.version);
    $(".datepicker > input[id]").datepicker();
      $.datepicker.setDefaults({
      dateFormat: 'dd-M-yy',
      changeMonth: true,
      changeYear: true,
      closeText: 'Done',
      showButtonPanel: true,
      duration: 'slow',
      prevText: 'Previous',
      showOtherMonths: true

  • BUG: Default reminder set in Live cal. even when specifying Reminder=None in Outlook 2013

    Since switching from Outlook 2010 to 2013 I have been getting calendar apointment alerts on the Windows Phone and iPad linked to my Live account, even though I am creating appointments specifying no reminder.
    After a lot of investigation, I can see exactly what the problem is. I have created many test appointments and exported from Outlook and examined the resulting file.
    If I have asked for a reminder, "Reminder on/off" is True and specified reminder date/time is present.
    If I have asked for NO reminder,  "Reminder on/off" is False *but*  reminder date/time is present based on the Default reminder setting. This occurs even when the tickbox for Default reminder is unticked (and there is no default setting
    for None apart from unticking).
    When that appointment reaches my Live calendar, it appears with a reminder, based on the date/time that Outlook 2013 has supplied, even though "Reminder on/off" is False.
    Is this a bug in Outlook, which surely shouldn't be putting default reminder date/time into the data when Reminder is set to None.
    Or is it a bug in Live, in that is should disregard any reminder date/time if "Reminder on/off" is False?
    The reminder does not pop up in Outlook, although it does on sync'ed devices.

    Hi Mark,
    Thank you for your update.
    Based on my long-time research, seems it’s the default behavior of Windows phone. The reminder is set to 15 minutes by default and it’s not possible to change the setting by default. See:
    http://answers.microsoft.com/en-us/winphone/forum/wp7-wppeople/i-dont-want-my-new-calendar-entries-to-have-a/48c38029-456d-4288-83d4-06c1047caa25
    http://answers.microsoft.com/en-us/winphone/forum/wp8-wpemail/how-to-set-calendar-default-to-no-reminders-on/f6058959-0d01-4daa-989a-64bb2642549e
    http://answers.microsoft.com/en-us/winphone/forum/wp8-wpemail/reminders-being-added-to-appointments/3b70b20b-6b4e-4414-8e56-ac99b1629b6d
    Would you please contact your Windows phone support to confirm this issue? Please feel free to post back if you need further support with Outlook 2013.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Bug: Default Panel width on Photoshop CS5 12.0.2 (all CS5 products?)

    Hi!
    It seems, the Photoshop CS5 12.0.2 update sets the default panel's width to 10 px on Mac.
    When I clean install the panel on new Photoshop it first opens like a thin line about 10 px width
    and about 300px height. It looks very strange and some people cannot scale it back with ease.
    (On Windows the 132px problem persists (bug #9 from here) even after update - panel cannot be scaled less than
    132px)
    Thanks
    Update: This behaviour is also confirmed on Illustrator CS5, so I guess it's a wider thing connected to the latest update of some CS5 component.

    OK, I found the source of this bug.
    minWidth. When you set minWidth on CSXSWindowedApplication with the latest updates to CS5, the suite will strangerly resize your panel to this minWidth whenever you try to set this.width. I will post it to the list of bugs.
    The test case is very simple:
    <csxs:CSXSWindowedApplication minWidth="10" applicationComplete="on_creation_complete()"  xmlns:csxs="com.adobe.csxs.core.*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" historyManagementEnabled="false">
        <mx:Script>
            <![CDATA[
                 private function on_creation_complete(): void
                    // the following line will scale the panel to its minWidth value instead of 500
                    this.width = 500;
                    this.height = 500;
            ]]>
        </mx:Script>
        <mx:VBox height="100%" width="100%" verticalAlign="middle" horizontalAlign="center">
        </mx:VBox>
    </csxs:CSXSWindowedApplication>

  • APEX 4 Bug: Wrong quickpicks in Item Page's Read Only section

    This bug is an easy one
    In Edit Page Item page, Read Only section, the predefined option list (now quickpicks) is as follows:
    [PL/SQL] [item=value] [item not null] [request=e1] [page in] [page not in] [exists] [none] [never]
    But if you look carefully, Conditions section has same quickpicks. Right quickpicks for Read Only should be:
    [PL/SQL] [item=value] [item not null] [request=e1] [page in] [page not in] [exists] [always] [never]
    Best regards.
    Oscar

    Hi Oscar,
    this problem has already been filed as bug# 9752881 and will be addressed in a future release.
    Thanks
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • APEX Interactive Reports - Default number of records

    With the new version of APEX (3.1.2) Interface Reports are available. This is a very nice functionalilty.
    The problem is that the default number of records are put to 15.
    Is it possible to put the default to 1000 for all users?
    Thanks for all the input
    Toon Schilder

    Roel,
    Thank you for the quick reply.
    The problem is as follows:
    In stead of manually updating page for page I would like to update the default of 15 to 1000 for all users for all pages.
    Of course if for some reason for one page it should be 500 I can use your method (save to default report settings).
    Is there a solution?
    Kind regards,
    Toon

  • Apex 4 - Bug - Button image automatically adding /i/ at the beginning

    Hi,
    APEX generates a /i/ at the beginning of the image path if you don't start your input value with a slash (*/*).
    Steps to reproduce the bug
    -Create a regular button.
    -Modify the button properties (attributes)
    -Set Button Style to image
    -Set Button Image to *&A_APP_FOLDR.icon_editn.png* (should render: /res/app01/images/icon_editn.png)
    The result is: <img border="0" alt="Éditer" src="*/i//res/saf/icon_editn.png*">
    Notice the */i/* at the beginning.
    Now, if I do the same but I add a slash before my bind variable.
    -Set Button Image to */&A_APP_FOLDR.icon_editn.png*
    The result is: <img border="0" alt="Éditer" src="*//res/saf/icon_editn.png*">
    I know how to workaround this one. ;) But I am looking for a permanent fix.
    Thanks in advance to the APEX dev team for the proper correction.
    Louis-Guillaume
    http://www.lgcarrier.com
    http://www.apexframework.com

    This workaround seems to work for region buttons but not for item buttons. Item buttons still have the /i/ prepended to them.

  • Bug - Default Java version

    When I'm changing the default java version in the Default Project Properties to 1.5.0_05-b05 and creating a new project; the new project still has java version 1.5.0_05 (Default).
    Bug?
    /Per-Arne

    I have just made the test of setting JDK 1.5.0_04 as the default version of Java and when I created a new project it worked perfectly. The change was made by downloading JDK 5 update 4 from Sun; making it accessible to JDeveloper by defining a new J2SE Definition in JDeveloper (from Default Project Properties) and selecting it as the default version of Java.
    Please note that even though 1.5.0_05-b05 was not selected by default, it was selectable for the new project, so it's not a big deal, but I still think that it must be a bug under the hood that should be corrected.
    The reason that I tried to change the default Java version was that Sun's version was 1.5.0_05-b05 and JDeveloper's was "only" 1.5.0_05-b03. ;-)

  • Loop through checkbox in Oracle APEX 4.2 (using JQuery Mobile)

    Hello!
    I want question text and a report containing the possible answers is shown on a page. An answer can be selected by clicking on the checkbox. After hitting the submit button, the selected checkboxes containing the Answer Text, an answer_id and the current session_id are to be inserted into a table within the database.
    Within Oracle APEX 4.2, I am using a classic report to achieve this. Thich is actually a bad solution, because the checkboxes within the report are shown as simple HTML checkboxes, instead of neat JQueryMobile checkboxes). Anyway, this is my current solution:
    Is use this code for creating the classic report:
    SELECT APEX_ITEM.CHECKBOX(1,answer_id), answer_id, answer_text
    FROM ANSWERS
    WHERE question_ID = :P10_Question_ID;
    The insert of the data is done via the on submit process "On Submit - After Computations and Validations"
    This is the code for the on submit process:
    DECLARE var_session_id NUMBER := :P0_SESSION_ID;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    INSERT INTO STUDENT_ANSWERS (answer_id, answer_text, session_id)
    SELECT a.answer_id, a.answer_text, var_session_id
    FROM ANSWERS a WHERE a.answer_id = APEX_APPLICATION.G_F01(i)
    END LOOP;
    COMMIT;
    END;
    But this solution does not work. Instead, nothing is inserted into the database.
    I don't know why the process is not inserting into the database, maybe there is something wrong with this line here WHERE a.answer_id = APEX_APPLICATION.G_F01(i) ?
    I even tried a simple update process for testing purposes, but this doesnt work either:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    UPDATE STUDENT_ANSWERS SET text = APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i))
    WHERE am_id = APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i));
    END LOOP;
    COMMIT;
    END;
    Can anybody tell me how to loop through a checkbox within ORACLE APEX 4.2 and how to insert the values ANSWER_ID, ANSWER_TEXT and SESSION_ID into the table STUDENT_ANSWERS after hitting the submit button? If you would know how to do it without using a report but a simple checkbox, this would be even more helpful for me!

    I would start by putting this after submit, to check the contents of the array.
    apex_debug.message('count:'||apex_application.g_f01.COUNT);
    FOR i IN 1..apex_application.g_f01.COUNT LOOP
        apex_debug.message('i:'||i||':'||apex_application.g_f01(i));
    END LOOP;
    Then compare the contents with your answers table.

  • For the apex-team : bug in apex ???

    Hi apex-team,
    if i make a master-detail report i can choose between a result of two pages (master and detailmaster with mru for the detail) , or a result with three pages (master, detailmaster with a report of detailtabel and a form for the detail-table.
    apex creates in both cases but in the second situation (three pages) on the third page it's impossible to add a detail. (in the result with two pages everything works fine).
    both apex verson 2.2 and version 3.
    just to inform you.
    regards!
    Leo

    Leo:
    That is a good point. The home page is using a derived column, and the HTML Expression for the column formatting. That must escape the HTML.
    I think the fix for a future release would be to not use that derived column, and just use a standard report with a custom template. It is also possible that for announcements and tasks it is more appropriate to use a standard Textarea instead of Textarea with HTML Editor.
    Thanks for your feedback,
    Jason

  • Bug: "default applications" does not work

    I set my internet browser to "opera mobile".  nonetheless, everything gets opened in the nokia browser.  
    What exactly is the benefit of changing the "default applications" then?

    @BassemN8
    Presumably you are referring to feature that performed correctly under Anna no longer being operative under Belle?
    Happy to have helped forum with a Support Ratio = 42.5

  • APEX Documentation Bug: APEX_UTIL.CLEAR_PAGE_CACHE

    For APEX Team (documentation)..
    APEX_UTIL.CLEAR_PAGE_CACHE says the parameter is p_page when it should be p_page_id.
    Martin

    Martin - Thanks.
    Scott

  • [Bug] Default timeout value of Wait for Occurrence

    This one kind of cheesed me off this morning. 
    When I create a constant/control from a terminal on a primitive I have come to expect the value to be the default value.  Those tricky folks found a way to get me again.
    Drop a Wait on Occurrence onto the BD
    Right-Click on 'Create Control' or 'Create Constant' from the suggestively named 'ms timeout (-1)' terminal
    The value/default is not -1, but rather 0.
    Slightly different behavior between -1 and 0.
    LV8.2-LV12 (at least)

    nathand wrote:
    Hooovahh wrote:
    Similarly I have an issue with how the Delete From Array function.  If I wire a 1D array of string to the input, and nothing else my output has the 1D array (with that index deleted), and then the Deleted Portion as a scalar string.
    If I create a constant from the Length terminal, the value is 0 and the functionality of the primative changes so that now Deleted Portion output is an Array of String.
    Personally, I greatly appreciate this usability enhancement. It would annoy me if I had to put an index array after every delete from array when I delete only a single element.
    I like the feature, I don't like the implementation.  Why can't a value of -1 be the default and that corresponds to a single scalar item being removed?  Instead of 0 be the default corresponding to delete nothing.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Maybe you are looking for

  • Use of Function Module IDOC_INPUT_CREDITOR

    Hi All, Could you please let me know the use of the function module IDOC_INPUT_CREDITOR. If i customise this function module by copying to Z_IDOC_INPUT_CREDITOR.. is it possible for me to post the vendor classification data by using the function modu

  • JCombobox on a jtabbed pane, AND Choice on jtabbed pane problems

    I have a Choice on a jtabbed pane, on a panel that isn't showing when the jtabbed pane is made visible. The Choice on the hidden pane is "bleeding" through to the first tabbed panel. help! If I click on the second tabbed panel (where the Choice is),

  • How to group two apple identifiers name

    hello By the pass I was connected with a gmail identifier, later on I bought a Mac, and generate an Apple identifier But i have few troubles to share access on my various pole device of my old purchases How could be group two identifier thanks

  • Finder log files?

    Hi, a few days ago I read something about Finder logging everything you do (such as creating new folders, renaming them, selecting them and so on). I was (and still am) wondering if this is true? I've tried to find this log file with the Console but

  • UI Control

    Is it possible to define my own user control and use it in the B1 Add-On development. If so, can it load into the screen painter??