Home > Building Your Application > Adding an Employees Report ...
Adding an Employees Report and Form |
![]() 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.
The Application home page appears.
For Page:
For Identify Table or View:
For Define Report Page, edit the following:
For Define Report Page, accept the default, Do not use tabs, and click Next.
For Define Report Page, press Ctrl, select the following columns, and click Next:
The columns you select here will appear on the Report page.
For Define Report Page, accept the defaults and click Next.
Note that the Edit Link image default resembles a small piece of paper and pencil.
Next, define the page and region information for the form.
In Tab Options, accept the default, Do not use tabs, and 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 will 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.
To preview the two pages you just created, run the current page. From the Employees report, you can then preview the form.
To preview the pages:
Click the Run Page icon.
The Employees report appears.
Note the following about the Employees report:
The Edit icon you selected appears in each row. You can click the Edit icon to update the employee record.
The Create button appears in the upper right corner. You can click the Create button to add an employee to the underlying table.
The Employees report includes the five columns you specified. When you selected the columns and applied the changes, Application Express created the appropriate SQL code in the background to produce this result.
Your data might appear in a different order. If so, ignore this difference and continue with these steps.
To review the form you also created, click the Edit icon in an Employee row.
The Create/Edit Employee form appears.
Note the following about the Create/Edit Employee form:
The form includes Cancel, Delete, and Apply Changes buttons.
The Hire Date field displays a calender, which is included because the data type of the underlying column is DATE
.