Help Contents |
| Definition | Additional Information |
Calendars display data from database tables or views as bar charts. The following section of an example calendar displays employee names from the SCOTT.EMP table on the day the employee was hired.
Calendars display data according to dates you specify using the SQL query. The format for a calendar query is:
SELECT
the_date,
the_name,
the_intermedia,
the_name_link,
the_date_link,
the_target
from schema.object
You can add hypertext links from values within the calendar to other OracleAS database portlets, database portlet customization form, or a URL.
Syntax for named link specification:
<portal schema name>.wwv_user_utilities.get_url(
'<app name>.<link name>',
'<link parameter name 1>', <link
parameter value 1>,
'<link parameter name 2>', <link
parameter value 2>,
...
'<link parameter name n>',
<link parameter value n>)
The following example provides the SQL SELECT statement for a calendar that links to a form. The example assumes that a link (LINK_TO_FORM) has been created that links to a form based on SCOTT.EMP.
select
EMP.HIREDATE the_date,
EMP.ENAME the_name,
null the_intermedia,
portal30.wwv_user_utilities.get_url(
'APP_1.LINK_TO_FORM',
'empno', EMPNO,
'_empno_cond', '=') the_name_link,
null the_date_link,
null the_target
from SCOTT.EMP
order by EMP.HIREDATE
The following example provides the SQL query to use a link that has been built based on a URL:
select
EMP.HIREDATE the_date,
EMP.ENAME the_name,
null the_intermedia,
'http://www.oracle.com' the_name_link,
null the_date_link,
null the_target
from SCOTT.EMP
order by EMP.HIREDATE