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!

How to access the "data" object?

Eslam_ElbyalyJan 18 2021 — edited Jan 18 2021

Hi, I am using APEX 20.2.0.00.20.
If you scroll down a little bit after opening this link https://docs.oracle.com/en/database/oracle/application-express/19.1/htmdb/creating-calendars.html#GUID-5C593F3E-FAB9-4B9B-B793-80B7F0B4EF2C under "Date Selected [Calendar] " section, you will come across,
Date Selected [Calendar]
This event fires when the user selects an empty date or date range either with the mouse or with the keyboard. If the developer provides a "create link" in the calendar attributes, no event fires.
Information about the current view is being passed as the "data" object:
{ "newStartDate"::: "newEndDate"::: }
{ "newStartDate":{first day of selection} (YYYYMMDDHH24MISS),
"newEndDate": {last day of selection} YYYYMMDDHH24MISS }

I can not understand the following parts,
1- Are the three lines of code javaScript or json?
2- Information about the current view is being passed as the "data" object:
when are this information passed? Passed to what? How can I access it?
3- { "newStartDate"::: "newEndDate"::: }
What are the three colons between newStartDate and newEndDate and the 3 colons at the end?
4- { "newStartDate":{first day of selection} (YYYYMMDDHH24MISS),
The format in () , is it only to illustrate the line? Or this is how a format for a date value defined in a javaScript object?

This post has been answered by InoL on Jan 19 2021
Jump to Answer
Comments
Post Details
Added on Jan 18 2021
3 comments
514 views