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!

DatePicker issue with jQuery in APEX 18.2 - 19.2

A. OlsenFeb 22 2020 — edited Feb 24 2020

I have an application that was running fine in 5.1 and keeps running fine after migration to 18.2, doing a simple modification of a datapicker.

But when I create a new page in 18.2 - Theme 42 - I run into a problem, the graphic element of the manipulated element is altered.

My demo shows that 19.2 has the same problem.

Case: Users choose a "From date" and want the "To date" field to have minDate and defaultDate = the date selected in From Date.

Application:

  • A page with a Static Content region.
  • 2 date items: P1_FROM_DATE and P1_TO_DATE
  • P1_FROM_DATE -> Dynamic Action -> Change -> Execute JavaScript Code:
    • $("#P1_TO_DATE").datepicker("option", "minDate", $("#P1_FROM_DATE").datepicker("getDate"));
    • $("#P0_TO_DATE").datepicker("option", "defaultDate", $("#P1_FROM_DATE").datepicker("getDate"));

Demo seen here: https://apex.oracle.com/pls/apex/f?p=19052

Select a data in "From Date", and see what happens to "To Date". The code works, but To Date looks like this:

pastedImage_7.png

Comments
Post Details
Added on Feb 22 2020
5 comments
2,035 views