Legacy Component View is disabled by default. To enable Legacy Component View, edit your user preferences.
Once you create a legacy calendar, you can alter the display by editing attributes. Each calendar has two sets of editable attributes: region attributes and calendar attributes. Region attributes define the area of the page which functions as a container for the calendar. Calendar attributes specify the template, date columns, and general calendar formatting.
Once you create a calendar, you can alter the display by editing attributes. Each calendar has two sets of editable attributes: region attributes and calendar attributes. Region attributes define the area of the page which functions as a container for the calendar. Calendar attributes specify the template, date columns, and general calendar formatting.
To disable a view of a calendar, you must delete the Monthly, Weekly, or Daily buttons on the calendar page.
To access Calendar attributes:
The Region Definition appears. Use these attributes to alter the container that holds the calendar, including the region title.
The Calendar Attributes page appears.
To learn more about an attribute, see field-level Help.
When defining calendar create and edit links for Desktop applications, Oracle recommends defining two separate pages. For the page used for creating a new calendar entry the Page Access Protection should to be defined as Unrestricted. However, for the page used for editing existing calendar entries the Page Access Protection should be set to Arguments Must Have Checksum.
To edit an existing calendar to include add and edit functionality:
For example, a Create Link for a duration based event navigating to Page 3 would be:
For example, a View / Edit Link using ROWID for the primary key column, navigating to Page 4 would be:
The selected date column must have a format mask of
RRRRMMDDHH24MISS since the calendar passes the date in that format.
If you do not want to change the format mask of date item, you must create a hidden item (this hidden item should be selected as Date Item which accepts the date value) in the form page with the above format mask.
From Primary Key Column, select the value to be passed when editing calendar data. This value is substituted for the
#PRIMARY_KEY_VALUE# specified in the previous step.
When you create a Legacy calendar on a new page, the Drag and Drop option does not appear. To enable this functionality, you must create the On Demand process, create a Legacy calendar page, and then edit the page to enable drag and drop. As a best practice, Oracle recommends creating this process before creating the calendar.
To enable support for dragging and dropping of calendar data:
Create an On Demand application process.
This process should execute when the calendar data is dragged and dropped. It should have code similar to the following example:
declare l_date_value varchar2(32767) := apex_application.g_x01; l_primary_key_value varchar2(32767) := apex_application.g_x02; begin update EMP set HIREDATE = to_date(l_date_value,'YYYYMMDD HH24MISS') where ROWID = l_primary_key_value; end;
Navigate to the Calendar Attributes.
Scroll down to Drag and Drop.
From Process, select the custom page process you created in step 1.
Click Apply Changes.