6 Developing the Milestones Page
Use the Create Page Wizard and Page Designer to add an interactive grid page to the application so that users can manage project Milestones.
In this lesson, you use the Create Page Wizard to add a new interactive grid page. Similar to the older interactive report, interactive grids do not require a paired form page to change the content displayed on the page.
In addition to the DEMO_PROJECTS
table, the app also contains the DEMO_MILESTONES
and DEMO_TASKS
tables. These two tables contain data for incremental milestones and tasks that help to track the progress of an entire project more precisely.
Currently, your app only supports changes to the status of entire projects. Develop the Milestones interactive grid so that your users can view and change the status of these tasks and milestones.
Add and configure a Milestones entry in the Desktop Navigation Menu so it displays across the entire app.
Use Dynamic LOVs (or lookups) to intelligently substitute information from another table by checking against the ID of the content in the original table.
Repeat some familiar tasks to clean up both the report and form in Page Designer and in the runtime.
Starting from here:
6 - Milestones.sqlIf you have not completed the previous lessons, you can use the appendix "Importing an Application into a Workspace" to import the above SQL script into your workspace and continue working from this lesson forward. You can find this script in the /files subdirectory of where you unzipped the .zip file accompanying this tutorial.
6.1 Creating an Interactive Grid Page
Start by using the Create Page Wizard to add a new page.
To add an interactive grid page to the application:
6.2 Updating the Navigation Menu for Milestones
On the Milestones page in the runtime, examine the Milestones entry in the navigation sidebar. Note that the icon is blank and that it is listed below Administration.
Elements that appear on all pages (such as the Navigation Menu) are controlled in Shared Components.
To view the Navigation Menu in Shared Components:
Since the Milestones page was created after the application, it is automatically added to the bottom of the list. As a best practice, you should separate developer-only pages from the other pages rather than mix them together. Update the sequence for both Administration and Milestones for them to appear in the right order.
To update the sequence for the Administration list entry:
Next, update the sequence and the icon from the blank default for Milestones.
To update the Milestones list entry:
6.3 Hiding Columns in the Application Runtime
Develop the Milestones interactive grid on page 5 in the application runtime by hiding several columns from view and moving the Due Date column.
Tip:
Oracle recommends hiding columns rather than deleting them in case you need them in the future.
In the runtime, you can hide columns using the Column Heading menu or the Actions menu.
To quickly hide a column in an interactive grid:
To hide multiple columns in an interactive grid:
To save your changes to the report:
6.4 Adding Project Names to the Milestones Interactive Grid
While the Milestones interactive grid is based on SAMPLE$PROJECT_MILESTONES
, note that none of the columns provide alphabetical names for the projects. Project names are stored in another table: the NAME
column in SAMPLE$PROJECTS
. Report regions can query other tables with a Dynamic LOV. This is also called a lookup.
First, create the Dynamic LOV in Shared Components and configure it to query SAMPLE$PROJECTS
.
Then use Page Designer to convert the PROJECT_ID
column to a Select List, and choose the Dynamic LOV / lookup to display the alphanumerical name of the referenced project instead of the numerical ID.
To return to Page Designer:
To create a new Dynamic LOV lookup:
To convert a column to a Select List:
6.5 Changing the Appearance of an Interactive Grid in Page Designer
Perform some routine clean-up tasks to make the interactive grid more user-friendly:
-
Change the heading of the
Name
column to instead refer specifically to Milestones. -
Convert the audit columns to Display Only to prevent end users from changing the contents.
-
Change the Appearance Template of the interactive grid to the template for interactive reports. This removes the header and some UI decorations to simplify the look.
To change a column heading:
To change multiple columns to Display Only:
To change the Appearance Template for a region:
6.6 Finalizing the Milestones Interactive Grid in the Runtime
Perform some routine clean-up tasks to complete the default Milestones report:
-
Sort the report so that it displays projects alphabetically.
-
Save your changes to the report layout as the new default.
To set multiple columns to sort ascending:
To save the report layout as the new default:
The Milestones page is complete. Proceed to the next lesson.