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!

APEX Date Picker

ScottMOct 12 2022

Hi,
Using the Oracle APEX site for testing so using 22.2. I have a page with just a singe page item on it that is set as a date picker. Just using the default settings. Item name is P1_LDS_DATE.
For starters, I want to simply disable all weekend dates but nothing I do seems to make that happen. Searched and found a few samples that show how this is done but nothing seems to make any difference or have any impact on the date picker.
In my page "Execute when Page Loads" javascript section I've tried all of the following with no luck.
$('.hasDatepicker').datepicker("option", "beforeShowDay", $.datepicker.noWeekends);
$('.P1_LDS_DATE').datepicker("option", "beforeShowDay", $.datepicker.noWeekends).next('button').addClass('a-Button a-Button--calendar');
$('#P1_LDS_DATE').datepicker("option", "beforeShowDay", $.datepicker.noWeekends);
Also tried moving all of those into a Page Load DA with no luck.
Does anyone have a sample page where I can see the code where this works?
Thanks in advance.

This post has been answered by Ronny Weiß-Oracle on Oct 13 2022
Jump to Answer
Comments
Post Details
Added on Oct 12 2022
6 comments
3,934 views