Home > Building Your Application > Editing the Employees Report > Add a Column
Previous |
Next |
Next, add a column to display the results of the employees' salary calculations.
To add a column:
Navigate to the Page Definition for page 3:
On the SQL Commands page, click the Home breadcrumb link.
On the Workspace home page, click Application Builder.
Select the AnyCo Corp application.
Click 3 - Employees.
The Page Definition for page 3, Employees, appears.
Under Regions, click the Employees link (next to Report).
Scroll down to Source, and replace the existing code with the following:
SELECT "EMPLOYEE_ID", "FIRST_NAME", "LAST_NAME", "HIRE_DATE", "SALARY", "COMMISSION_PCT", calc_remuneration(salary, commission_pct) REMUNERATION FROM "#OWNER#"."OEHR_EMPLOYEES"
Click Apply Changes.