Week3.4 Lab
Week3.4 Lab
Week3.4 Lab
Introduction
In this lab, you will learn how to add additional columns to a report and improve a list of values.
1. From the runtime application, navigate to the To Dos report page, and then navigate to
Page Designer.
Within Page Designer, in the Rendering tree (left pane), click To Dos.
In the Property Editor (right pane), for Source > Type, select SQL Query.
{Note: The SQL Query will be populated. The SQL statement selects all of the columns
from the HOL_TO_DOS table.}
For Source > SQL Query, click the Code Editor icon.
In the Code Editor, enter the following:
Copyselect ID,
(select p.name
) project,
(select m.name
) milestone,
TASK_ID,
ROW_VERSION,
TODO,
ASSINGEE,
DUE_DATE,
DETAILS,
CREATED,
CREATED_BY,
UPDATED,
UPDATED_BY
from HOL_TO_DOS td
{Note: The two inner select statements connect the projects / milestones tables to the
tasks table, and the tasks table to the todos table.}
3. Run the application to ensure the new Project and Milestone columns display correctly.
4. The new project and milestone columns are placed as the last columns in the report,
however, they should be moved to be the first columns.
In the runtime environment, in the To Dos report menu, click Actions.
In the dropdown, select Columns.
6. You need to save the revised report layout so others will see the new and improved
column placement.
7. In the Save Report dialog, for Save (Only displayed for developers), select As Default
Report Settings.
8. In the Save Default Report dialog, click Apply.
{Note: You want to save the report as Primary so that it displayed as you see it now to
end users when they navigate to the page.}
This same LOV is used on the Links form page so we can reuse it there as well.
1. From the runtime environment, in the Developer Toolbar, click Application xxxxx.
o Copyselect id
o , name
o from hol_tasks t
6. On the To Do form page you will need to update the item type for Task.
For Task, click the down arrow to display the Task Popup LOV.
Enter in a search term and hit [Enter].
Summary
You now know how to enhance report and list of value queries to display related details.