Home > Building Your Application > Adding an Employees Report ...
Previous |
Next |
In this exercise, you add a report to display employee information and a form to create, update, and delete employee information.
To add an employee report and form:
Click the Application link on the Developer toolbar (at the bottom of the page).
The Application home page appears.
Click Create Page.
For Page:
Select Form and click Next.
Select Form on a Table with Report.
This option creates two pages, a report and form, based on a single table or view.
Click Next.
For Identify Table or View:
For Table/View Owner, accept the default and click Next. This specifies the schema owner.
For Table/View Name, select OEHR_EMPLOYEES and click Next.
For Define Report Page, make these changes:
For Define Report Page, accept the default, Do not use tabs, and click Next.
For Define Report Page, press the Ctrl key, select the following columns, and click Next:
EMPLOYEE_ID
FIRST_NAME
LAST_NAME
HIRE_DATE
SALARY
COMMISSION_PCT
The columns you selected appear on the Report page.
For Define Report Page, accept the defaults and click Next.
Note that the default Edit Link image resembles a small piece of paper and pencil.
Next, define the page and region information for the form.
For Define Form Page, edit the following:
Page Name - Enter Create/Edit Employee
.
Region Title - Enter Create/Edit Employee
.
Entry Name - Enter Create/Edit Employee
.
Click Next.
In Primary Key, accept the defaults and click Next.
In Define the source for the primary key columns, accept the default, Existing trigger, and click Next.
Your table, OEHR_EMPLOYEES
, already has a trigger that populates the primary key.
In Select Column(s), select all columns and click Next.
These columns now appear in the Create/Edit Employee form.
In Identify Process Options, accept the defaults and click Next.
These selections enable users to add, update, and create employee records.
For Confirm, verify the information and click Finish.