Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jquery ui datepicker inconsistency

klsharpeOct 13 2014 — edited Oct 14 2014

I am trying to affect the behavior of a datepicker popup of an Interactive Report Region and getting inconsistent results. I am using Apex v4.2.4.00.08

I created an IRR on a table with a date column. Once created, I use Actions => Filter and select the date column. I typically use the between operator and select the datepicker icon to then choose dates. (I plan to make this filter a saved report.)

I need to change the datepicker popup to allow the user to see more than one month at a time. With some experimentation, I added this code in Page => Javascript => :

$(document).ready(function() {

  // modify to show 3 months at a time and a button panel to select Today

  $.datepicker.setDefaults({

    "numberOfMonths": 3, "dateFormat": "dd-M-yy",  "showButtonPanel": true});

});

I return to the datepicker and successfully get 3 months in the popup and the Panel at the bottom with Today and Close buttons. However, I really want the Month and Year as select pull-down menus. I now make this change to the Javascript:

$(document).ready(function() {

  // modify to show month and year as select pull-down menus

  $.datepicker.setDefaults({

    "changeMonth": true, "changeYear": true, "dateFormat": "dd-M-yy",  "showButtonPanel": true});

});

The datepicker returns to single month popup, no select menus, but the Panel remains. My question is why is the datepicker modifiable with one default but not another? I tried the Apex v5 Early Adopter sandbox and had the same results.

Thanks,

Kelly

This post has been answered by Tom Petrus on Oct 14 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2014
Added on Oct 13 2014
5 comments
1,483 views