Browser Detection Script checks if Internet Explorer 5.5 is being used and adjusts the font size if it is.
Help Contents

What are calendars?

| Definition | Additional Information |

Back to topDefinition

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.

Sample calendar

Writing a SQL query for a calendar

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

where:

the_date (required)
the_name (required)
the_intermedia (optional)
the_name_link (optional)
the_date_link (optional)
the_target_frame (optional)

Adding links

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>)

 

Notes

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

Back to topAdditional Information

On Portal Center:

Oracle Logo
Copyright © 2004, Oracle. All rights reserved.