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!

Dynamic min value for Jet Date Picker

AnnelizeFAug 26 2021

We're running APEX 21.1.2
My form has P100_START_DATE and P100_END_DATE using the new JET date picker.
I want to set the P100_END_DATE with a minimum date of P100_START_DATE. This works well by setting the minimum static = &P100_START_DATE.
However, this minimum also needs to be maintained when the user changes the start date.
Before the upgrade, the following code worked well.
Dynamic action:
Name: On Change Set Min End Date
When: Change > Item > P100_START_DATE
True Action:


// save the current CSS class information of the "calendar" icon
var lClass=$("#P100_END_DATE").next("button").attr("class")

$("#P100_END_DATE").datepicker( "option", "minDate", $("#P100_START_DATE").val() );

// restore the CSS classes after calling the jQuery UI datepicker method
$("#P100_END_DATE").next("button").attr("class", lClass);

What would the updated javascript be for the new datepicker, please?

This post has been answered by InoL on Dec 30 2021
Jump to Answer
Comments
Post Details
Added on Aug 26 2021
5 comments
1,114 views