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