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!

How to Blackout Dates on Popup jQuery Calendar Control?

Joseph UpshawSep 12 2018 — edited Sep 12 2018

Application Express 5.1.4.00.08

Within a report query, we're using APEX_ITEM.DATE_POPUP2 method which, yields a jQuery Datepicker Widget. We have a requirement that the users can not pick a date in the past. To implement this, it looks pretty straightforward that we could use the minDate option (http://api.jqueryui.com/datepicker/#option-minDate) to do this very thing. However, it just doesn't seem to be working and I think the main issue is that we're not sure what to use for the $( ".selector" ) shown in the example. We've tried methods to set it both before and after it is rendered but, nothing seems to be working. Oddly, if there is only one row display and if (and only if) the calendar is already displayed then this works:

$('input.riskDateInput').datepicker( "option", "minDate", new Date(2018, 1, 20) );

However, if more than one row is displayed or if this is called prior to the calendar popping up, it doesn't.

Anyone have any ideas?

Thanks,

-Joe

This post has been answered by Joseph Upshaw on Sep 12 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2018
Added on Sep 12 2018
6 comments
1,167 views