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