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