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!

Get Calendar Region End Date

GAPMay 21 2024

I am using the Calendar region and would like to get the end date of the month calendar that is being displayed.

I am using a dynamic action to set a page item to the end date using a dynamic action Javascript expression:

this.data.endDate

It sets the value correctly when using the next and previous calendar buttons on the Oracle APEX site which has version 23.2.4, although I do get an javascript error:

desktop_all.min.js?v=23.2.4:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'endDate') TypeError: Cannot read properties of undefined (reading 'endDate')

On my version of APEX 23.2.6 the dynamic action does not set the value of the page item and I still get the error.

Any suggestions?

The code we had for APEX version 19 does not work anymore. Here's the old code that was working:

moment(apex.region("calendar_id").widget().fullCalendar("getView").title).add(1, "month").subtract(1, "days").format("DD-MMM-YYYY")

Thanks,

Glen

This post has been answered by jariola on May 23 2024
Jump to Answer
Comments
Post Details
Added on May 21 2024
5 comments
281 views