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!

Navigate from Month to Day using APEX Full Calendar

Roxy rollersApr 20 2021 — edited Apr 20 2021

I have a Calendar with Month, Week, Day and List view options.
As we know, when you switch from Month to Day, it automatically goes to the first day of the month. However, I would like to navigate directly to the Day when I click on a certain Date in Month View. I have a DA for this. For Days that have an Event, I do show a Modal popup with the details for that day's appointment. I still want that to happen when I click on the link but I want to navigate to the day if I click outside the link (Anywhere in that day). The navigation is only happening when I click on the "Date label".
DA: Navigate Month to Day
My jQuery selector is correct as I find all the td's for that month on my console - $('td.fc-day-number'). Also, I saw other posts where the Event Scope should be Dynamic for it to work when you switch to a different month.
image.pngTrue Action: Execute JavaScript

// Go to the date of the clicked day
$(this.triggeringElement).closest("div.fc").fullCalendar("gotoDate", $(this.triggeringElement).data().date);
// Switch the view to Day view
$(this.triggeringElement).closest("div.fc").fullCalendar("changeView", "agendaDay");

Thanks in advance.

Comments
Post Details
Added on Apr 20 2021
0 comments
684 views