Home > Adding Application Components > Creating Calendars > Editing Calendar Attributes
Previous |
Next |
Once you create a calendar, you can alter the display by editing attributes on the Calendar Attributes page.
Note that to disable a view of a calendar, you must delete the Monthly, Weekly, or Daily buttons on the calendar page.
Topics:
To access the Calendar Attributes page:
Navigate to the appropriate Page Definition. See "Accessing the Page Definition".
Access the Calendar Attributes page:
Tree view- Under Page Rendering, double-click the region name.
Component view - Under Region, select the region name.
The Region Definition appears.
Click Calendar Attributes.
Edit the appropriate attributes. To learn more about a specific item on a page, click the item label.
When Help is available, the item label changes to red when you pass your cursor over it and the cursor changes to an arrow and question mark.
Click Apply Changes.
The Calendar Attribute page is divided into sections.
You can access these sections by scrolling down the page, or by clicking a navigation button at the top of the page. When you select a button at the top of the page, the selected section appears and all other sections are temporarily hidden. To view all sections of the page, click Show All.
The topics that follow describe specific sections of the Calendar Attributes page. You can use these attribute to specify general calendar formatting, define the dates included in the calendar, or create a link on the column or a day in the calendar.
Use Calendar Display to specify a calendar template, date columns, and general calendar formatting. Table: Calendar Display Attributes describes Calendar Display attributes.
Calendar Display Attributes
Attribute | Description |
---|---|
Calendar Template |
Determines what template is used when the Application Express engine renders a calendar. |
Date Column |
Defines the column from the table or query containing the dates to be placed on the calendar. |
Date Item |
Defines the item which holds the date on which the calendar is based |
End Date Item |
Specifies the item which holds the end date on which the calendar of type Custom is based |
Calendar Type Item |
Specifies the item which holds the calendar type. |
Display Type |
Defines the display type. Options include:
If the Display Type is Column, use the Display Column attribute to select the column to display in the day cell of the monthly calendar. If the Display Type is Custom, in Column Format enter a custom column format using HTML expressions and supported substitution strings. |
Display Column |
Defines a specific row that displays on a calendar date. |
Column Format |
Enter HTML expressions to be shown in this column. Use #EMPLOYEE_NAME# This following example demonstrates how to display images in a column. <img src="#IMAGE_NAME#"> |
Use Display Attributes to define the dates that are included in the calendar. Table: Display Attributes describes Display attributes.
Display Attributes
Attribute | Description |
---|---|
Begin at Start of Interval |
Determines when the calendar should start. Selecting this option creates a calendar that spans an entire interval (such as a month). For example:
|
Item Containing Start Date Item Containing End Date |
These attributes define which items hold the calendar start date and end date. You can use these attributes to create calendars that span multiple months at a time. Note that the format of the date of either item must be
|
Start of Week for Monthly Calendar |
Determines the day on which the calendar starts for the monthly view. |
Start Day for Weekly Calendar |
Determines the day on which the calendar starts for the weekly view. |
End Day for Weekly Calendar |
Determines the day on which the calendar ends for the weekly view. Time Format determines if the time displays in a 12-hour or 24-hour format. Start Time and End Time determine the start and end times to display in the weekly and daily calendar views. |
Time Format |
Determines if the time displays in a 12-hour or 24-hour format. |
Start Time |
Determines the start times to display in the weekly and daily calendar views. |
End Time |
Determines the end times to display in the weekly and daily calendar views. |
Use Column link to create a link on the column in the calendar.
To create a column link to another page:
Navigate to the appropriate Calendar Attributes page.
Scroll down to Column Link.
From Target is a, select Page in this Application.
In Page, specify the target page number. To reset the pagination for this page, select reset pagination for this page.
In Request, specify the request to be used.
In Clear Cache, specify the pages (that is, the page numbers) on which to clear cache. Specify multiple pages by listing the page numbers in a comma-delimited list.
You can set session state (that is, give a listed item a value) using the next two attributes: the Set these items attribute and the With these values attribute.
To set session state:
Set these items - Enter a comma-delimited list of item names for which you would like to set session state.
With these values - Enter a comma-delimited list of values for the items specified in the previous step.
You can specify static values or substitution syntax (for example, &APP_ITEM_NAME.
). Note that item values passed to f?p=
in the URL cannot contain a colon (:). Additionally, item values cannot contain commas unless you enclose the entire value in backslashes (for example, \1234,56\
).
Click Apply Changes.
To create a column link to a URL:
Navigate to the appropriate Calendar Attributes page.
Scroll down to Column Link.
From Target is a, select URL.
In URL, enter the appropriate address.
Click Apply Changes.
Use Day link to create a link on a day in the calendar. This attribute creates a link on an actual number (or day) on the calendar.
To create a day link to another page:
Navigate to the appropriate Calendar Attributes page.
Scroll down to Day Link.
From Target is a, select Page in this Application.
In Page, specify the target page number.
To reset the pagination for this page, select reset pagination for this page.
In Request, specify the request to be used.
In Clear Cache, specify the pages (that is, the page numbers) on which to clear cache. Specify multiple pages by listing the page numbers in a comma-delimited list.
You can set session state (that is, give a listed item a value) using the next two attributes: Set these items and With these values.
To set session state:
Set these items - Enter a comma-delimited list of item names for which you would like to set session state.
With these values - Enter a comma-delimited list of values for the items specified in the previous step.
You can specify static values or substitution syntax (for example, &APP_ITEM_NAME.
). Note that item values passed to f?p=
in the URL cannot contain a colon (:). Additionally, item values cannot contain commas unless you enclose the entire value in backslashes (for example, \1234,56\
).
Click Apply Changes.
To create a day link to a URL:
Navigate to the appropriate Calendar Attributes page.
Scroll down to Day Link.
From Target is a, select URL.
In URL, enter the appropriate address.
Click Apply Changes.