Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

D79653GC20 Ag2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 420

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY.

COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

D79653GC20
Workshop I

Activity Guide – Volume II

Edition 2.0 | September 2015 | D92370

Learn more from Oracle University at oracle.com/education/


Oracle Application Express

Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Disclaimer

This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and
print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way.
Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display,
perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization
of Oracle.

The information contained in this document is subject to change without notice. If you find any problems in the document, please
report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.

Oracle University and Error : You are not a Valid Partner use only
Restricted Rights Notice

If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United
States Government, the following notice is applicable:

U.S. GOVERNMENT RIGHTS


The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted
by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract.

Trademark Notice

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective
owners.

Authors
Ashwin Agarwal, Anjani Pothula

Technical Contributors and Reviewers


Bryan Roberts, Wayne Abbott, Iloon Ellen, Marc Swetz, Patrick Wolf, Shakeeb Rahman,
Nancy Greenberg, Ashley Chen, Klaus Husermann, Marcie Young, Andrew Rothstein,
Anthony Rayner, Chaitanya Koratamaddi, David Peake, Denise Simpson,
Veerabhadra Rao Putrevu, Yi Lu, Lakshmi Narapareddi, Fabrizio Siracusa, Hanson Hutabarat,
Hilary Farrell, Dimpi Sarmah, Salome Clement

This book was published using: oracletutor


THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Table of Contents
Course Practice Environment: Security Credentials ....................................................................................I
Practices for Lesson 1: Course Overview .....................................................................................................1-1
Practices for Lesson 1: Overview ...................................................................................................................1-2
Practices for Lesson 2: Introducing Oracle Application Express ................................................................2-1
Practices for Lesson 2: Overview ...................................................................................................................2-2
Practice 2-1: Using Oracle Application Express as a Workspace Administrator ............................................2-3

Oracle University and Error : You are not a Valid Partner use only
Practice 2-2: Using Oracle Application Express as a Developer ....................................................................2-4
Solution 2-1: Using Oracle Application Express as a Workspace Administrator ............................................2-5
Solution 2-2: Using Oracle Application Express as a Developer ....................................................................2-11
Practices for Lesson 3: Creating a Desktop and Mobile Database Application .........................................3-1
Practices for Lesson 3: Overview ...................................................................................................................3-2
Practice 3-1: Creating Database Applications ................................................................................................3-3
Practice 3-2: Creating a Database Application from a Spreadsheet ..............................................................3-4
Practice 3-3: Creating a Mobile Database Application ...................................................................................3-5
Solution 3-1: Creating Database Applications ................................................................................................3-6
Solution 3-2: Creating a Database Application from a Spreadsheet ..............................................................3-13
Solution 3-3: Creating a Mobile Database Application ...................................................................................3-21
Practices for Lesson 4: Working with Reports for Desktop Applications ..................................................4-1
Practices for Lesson 4: Overview ...................................................................................................................4-2
Practice 4-1: Creating Classic Reports ..........................................................................................................4-3
Practice 4-2: Building and Manipulating an Interactive Report .......................................................................4-5
Practice 4-3: Customizing an Interactive Report ............................................................................................4-7
Solution 4-1: Creating Classic Reports ..........................................................................................................4-8
Solution 4-2: Building and Manipulating an Interactive Report .......................................................................4-32
Solution 4-3: Customizing an Interactive Report ............................................................................................4-66
Practices for Lesson 5: Working with Reports for Mobile Applications .....................................................5-1
Practices for Lesson 5: Overview ...................................................................................................................5-2
Practice 5-1: Adding and Modifying a List View Report Page in Your Application .........................................5-3
Practice 5-2: Creating a Column Toggle Report for Your Mobile Application .................................................5-4
Practice 5-3: Creating a Reflow Report for Your Mobile Application ..............................................................5-5
Solution 5-1: Adding and Modifying a List View Report Page in Your Application .........................................5-6
Solution 5-2: Creating a Column Toggle Report for Your Mobile Application .................................................5-13
Solution 5-3: Creating a Reflow Report for Your Mobile Application ..............................................................5-21
Practices for Lesson 6: Creating Forms ........................................................................................................6-1
Practices for Lesson 6: Overview ...................................................................................................................6-2
Practice 6-1: Creating a Form on a Table ......................................................................................................6-3
Practice 6-2: Creating a Master Detail Form ..................................................................................................6-5
Practice 6-3: Creating a Tabular Form ...........................................................................................................6-7
Practice 6-4: Creating a Form on a Table with List View for Mobile Applications ...........................................6-8
Solution 6-1: Creating a Form on a Table ......................................................................................................6-9
Solution 6-2: Creating a Master Detail Form ..................................................................................................6-22
Solution 6-3: Creating a Tabular Form ...........................................................................................................6-40
Solution 6-4: Creating a Form on a Table with List View for Mobile Applications ...........................................6-50
Practices for Lesson 7: Working with Pages and Regions ..........................................................................7-1
Practices for Lesson 7: Overview ...................................................................................................................7-2

Copyright © 2015. Oracle and/or its affiliates. All rights reserved.

Oracle Application Express Workshop I Table of Contents


i
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 7-1: Creating and Modifying Pages and Regions .............................................................................7-3


Practice 7-2: Working with Global Pages .......................................................................................................7-5
Practice 7-3: Modifying the Mobile Home Page .............................................................................................7-7
Solution 7-1: Creating and Modifying Pages and Regions .............................................................................7-8
Solution 7-2: Working with Global Pages .......................................................................................................7-30
Solution 7-3: Modifying the Mobile Home Page .............................................................................................7-36
Practices for Lesson 8: Adding Items and Buttons ......................................................................................8-1
Practices for Lesson 8: Overview ...................................................................................................................8-2
Practice 8-1: Adding Items and Buttons .........................................................................................................8-3

Oracle University and Error : You are not a Valid Partner use only
Practice 8-2: Manipulating Items ....................................................................................................................8-5
Solution 8-1: Adding Items and Buttons .........................................................................................................8-7
Solution 8-2: Manipulating Items ....................................................................................................................8-24
Practices for Lesson 9: Understanding Session State .................................................................................9-1
Practices for Lesson 9: Overview ...................................................................................................................9-2
Practice 9-1: Understanding Session State ....................................................................................................9-3
Solution 9-1: Understanding Session State ....................................................................................................9-5
Practices for Lesson 10: Adding Page Processing.......................................................................................10-1
Practices for Lesson 10: Overview .................................................................................................................10-2
Practice 10-1: Creating and Manipulating Computations, Processes, and Validations ..................................10-3
Solution 10-1: Creating and Manipulating Computations, Processes, and Validations ..................................10-6
Practices for Lesson 11: Validating and Debugging Your Application .......................................................11-1
Practices for Lesson 11: Overview .................................................................................................................11-2
Practice 11-1: Using the Advisor ....................................................................................................................11-3
Practice 11-2: Modifying the Attribute Dictionary............................................................................................11-4
Solution 11-1: Using the Advisor ....................................................................................................................11-6
Solution 11-2: Modifying the Attribute Dictionary............................................................................................11-12
Practices for Lesson 12: Adding Shared Components that Aid Navigation ...............................................12-1
Practices for Lesson 12: Overview .................................................................................................................12-2
Practice 12-1: Creating Lists and List Regions ..............................................................................................12-3
Practice 12-2: Creating and Editing Navigation Menu ....................................................................................12-4
Practice 12-3: Adding Navigation Bar Entries ................................................................................................12-5
Practice 12-4: Adding Breadcrumbs to an Existing Page ...............................................................................12-6
Solution 12-1: Creating Lists and List Regions ..............................................................................................12-7
Solution 12-2: Creating and Editing Navigation Menu ....................................................................................12-21
Solution 12-3: Adding Navigation Bar Entries ................................................................................................12-28
Solution 12-4: Adding Breadcrumbs to an Existing Page ...............................................................................12-38
Practices for Lesson 13: Working with Themes, Templates, and Files .......................................................13-1
Practices for Lesson 13: Overview .................................................................................................................13-2
Practice 13-1: Creating a Theme from the Repository ...................................................................................13-3
Practice 13-2: Editing Templates ...................................................................................................................13-4
Practice 13-3: Uploading and Applying a CSS ...............................................................................................13-5
Solution 13-1: Creating a Theme from the Repository ...................................................................................13-6
Solution 13-2: Editing Templates ...................................................................................................................13-9
Solution 13-3: Uploading and Applying a CSS ...............................................................................................13-14
Practices for Lesson 14: Implementing Security ..........................................................................................14-1
Practices for Lesson 14: Overview .................................................................................................................14-2
Practice 14-1: Creating an Authentication Scheme ........................................................................................14-3
Practice 14-2: Restricting Users by Using Access Control .............................................................................14-4
Copyright © 2015. Oracle and/or its affiliates. All rights reserved.

Oracle Application Express Workshop I Table of Contents


ii
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 14-3: Enabling Session State Protection ..........................................................................................14-6


Solution 14-1: Creating an Authentication Scheme ........................................................................................14-8
Solution 14-2: Restricting Users by Using Access Control .............................................................................14-13
Solution 14-3: Enabling Session State Protection ..........................................................................................14-37
Practices for Lesson 15: Managing Application Navigation ........................................................................15-1
Practices for Lesson 15: Overview .................................................................................................................15-2
Practice 15-1: Building a Hierarchical List with Images ..................................................................................15-3
Practice 15-2: Building a Database-Driven Report .........................................................................................15-5
Practice 15-3: Building a Site Map .................................................................................................................15-7

Oracle University and Error : You are not a Valid Partner use only
Practice 15-4: Enforcing Authorization in Site Map ........................................................................................15-9
Solution 15-1: Building a Hierarchical List with Images ..................................................................................15-11
Solution 15-2: Building a Database-Driven Report .........................................................................................15-23
Solution 15-3: Building a Site Map .................................................................................................................15-33
Solution 15-4: Enforcing Authorization in Site Map ........................................................................................15-51
Practices for Lesson 16: Extending Your Application ..................................................................................16-1
Practices for Lesson 16: Overview .................................................................................................................16-2
Practice 16-1: Creating Data Load Wizard Pages ..........................................................................................16-3
Practice 16-2: Adding an Upload and Download Page ..................................................................................16-5
Practice 16-3: Adding BLOB Data to Your Report and Form .........................................................................16-7
Solution 16-1: Creating Data Load Wizard Pages ..........................................................................................16-9
Solution 16-2: Adding an Upload and Download Page ..................................................................................16-24
Solution 16-3: Adding BLOB Data to your Report and Form ..........................................................................16-36
Practices for Lesson 17: Creating and Editing Charts .................................................................................17-1
Practices for Lesson 17: Overview .................................................................................................................17-2
Practice 17-1: Creating and Modifying Flash Charts ......................................................................................17-3
Practice 17-2: Creating HTML5 Chart in a Mobile Application .......................................................................17-5
Practice 17-3: Creating Additional Charts ......................................................................................................17-7
Solution 17-1: Creating and Modifying Flash Charts ......................................................................................17-9
Solution 17-2: Creating HTML5 Chart in a Mobile Application .......................................................................17-21
Solution 17-3: Creating Additional Charts ......................................................................................................17-28
Practices for Lesson 18: Adding Calendars and Trees ................................................................................18-1
Practices for Lesson 18: Overview .................................................................................................................18-2
Practice 18-1: Creating a Calendar ................................................................................................................18-3
Practice 18-2: Adding a Calendar to a Mobile Application .............................................................................18-5
Practice 18-3: Creating a Tree and Displaying it from a Different Page .........................................................18-7
Solution 18-1: Creating a Calendar ................................................................................................................18-9
Solution 18-2: Adding a Calendar to a Mobile Application .............................................................................18-21
Solution 18-3: Creating a Tree Whose Nodes Link to a Different Page .........................................................18-32
Practices for Lesson 19: Using Dynamic Actions and Plug-Ins ..................................................................19-1
Practices for Lesson 19: Overview .................................................................................................................19-2
Practice 19-1: Using Dynamic Actions on Your Page ....................................................................................19-3
Practice 19-2: Importing and Using Plug-Ins on Your Page ...........................................................................19-5
Solution 19-1: Using Dynamic Actions on Your Page ....................................................................................19-7
Solution 19-2: Importing and Using Plug-Ins on Your Page ...........................................................................19-35
Practices for Lesson 20: Utilizing Application Express Printing .................................................................20-1
Practices for Lesson 20: Overview .................................................................................................................20-2
Practice 20-1: Printing a Standard Report with Derived Output .....................................................................20-3
Practice 20-2: Creating a PDF Report with Multiple Queries .........................................................................20-5
Copyright © 2015. Oracle and/or its affiliates. All rights reserved.

Oracle Application Express Workshop I Table of Contents


iii
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 20-1: Printing a Standard Report with Derived Output .....................................................................20-6


Solution 20-2: Creating a PDF Report with Multiple Queries .........................................................................20-21
Practices for Lesson 21: Managing Application Feedback ..........................................................................21-1
Practices for Lesson 21: Overview .................................................................................................................21-2
Practice 21-1: Adding and Monitoring Feedback in Your Application .............................................................21-3
Solution 21-1: Adding and Monitoring Feedback in Your Application .............................................................21-5

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015. Oracle and/or its affiliates. All rights reserved.

Oracle Application Express Workshop I Table of Contents


iv
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Course Practice Environment: Security Credentials

For OS usernames and passwords, see the following:


• If you are attending a classroom-based or live virtual class, ask your instructor or LVC
producer for OS credential information.
• If you are using a self-study format, refer to the communication that you received from
Oracle University for this course.

Oracle University and Error : You are not a Valid Partner use only
For product-specific credentials used in this course, see the following table:

Product-Specific Credentials
Product/Application Username Password
Workspace Administrator User apex_admin apex
Workspace Developer User apex apex
Workspace Developer User brad.knight apex
Workspace Administrator User susie.parker apex
Workspace End User john.bell apex
Note: The credentials mentioned above are for the users of the APEX Workspace. The first
user (that is, apex_admin) is precreated. You will be creating all the other users during the
practices.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Course Practice Environment: Security Credentials


Introduction
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Course Practice Environment: Security Credentials


Introduction
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 12:
Adding Shared Components
that Aid Navigation
Chapter 12

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 12: Overview


Practices Overview
There are four practices for this lesson. You create a list and list region, create and edit
navigation menu, add navigation bar entries, and add breadcrumbs to an existing page of the
GMT application.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 12-1: Creating Lists and List Regions


Overview
In this practice, you create a list of links that aid navigation. Using these links, a user will be able
to navigate to the Customers, Products, and Orders pages.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. In the GMT application, create a list called Home Page List with the following list entries:
 View Customers (linked to the Customers page)
 View Products (linked to the Products page)
 View Orders (linked to the Orders page)
2. Create a list region called Tasks in the Home region.
3. Create a Dynamic List showing all the Products on the Products page. Create the List
Region on the Products page by using the same Create List Wizard.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 11-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_11_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 12-2: Creating and Editing Navigation Menu


Overview
In this practice, you create a navigation menu for the application and assign pages to the menu.
You also create a Help page and a Help tab to add to the existing tab set.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a navigation menu called Orders for the GMT application. It should be the current
tab for the List of Orders page. Sequence the Orders entry before the Products navigation
entry.
2. Assign the Master Detail page to the Orders navigation entry. Run the application and
confirm that the navigation is created successfully.
3. Create a page called Help, and then add a new navigation menu entry called Help, to the
existing navigation menu. The new Help entry will link to the new Help page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 12-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_12_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 12-3: Adding Navigation Bar Entries


Overview
In this practice, you add a navigation bar entry that, when clicked, will show the page-level help.
You also modify the name of an existing navigation bar entry and add another navigation bar
entry that is displayed on all pages except the page that it navigates to.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a navigation bar entry called Help that navigates to the Help page. Run the page
and click the Help navigation bar entry.
2. Change the name of the navigation bar entry for Log Out to Sign Off.
3. Add a navigation bar entry called Home such that it appears between the Help and Sign
Off button. Display the navigation bar entry on all pages except the Home page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 12-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_12_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 12-4: Adding Breadcrumbs to an Existing Page


Overview
In this practice, you create breadcrumbs and add it to the existing pages of the GMT application.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Edit the existing breadcrumb for the GMT application and create a breadcrumb entry for the
Customers page. Run the customers page. Is the breadcrumb displayed on the page?
2. Create a breadcrumb region on the Customers page and run the page.
3. On the Customer Details page, create a breadcrumb called Customer Details whose
parent entry is the Customers page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 12-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_12_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 12-1: Creating Lists and List Regions


Overview
In this practice solution, steps are provided for creating lists and list regions for the GMT
application.

Steps
1. In the GMT application, create a list called Home Page List with the following list entries:

Oracle University and Error : You are not a Valid Partner use only
 View Customers (linked to the Customers page)
 View Products (linked to the Products page)
 View Orders (linked to the Orders page)
a. In the GlobalMart Management Tool application home page, select Shared
Components.

b. In the Navigation section, click Lists.

c. Click Create >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Accept the default and click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. For Name, enter Home Page List and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Enter View Customers in the first List Entry Label field. Then click the
corresponding up button and select the Customers page (Page 5) for Target Page ID
or custom URL. Similarly, enter View Products and View Orders in the second
and third List Entry Label fields. Then select the Products (Page 11) and List of
Orders (Page 8) pages respectively, by clicking the up arrow. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
g. Accept the default and click Create List.

The Home Page List is created.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Click the Application 1 breadcrumb.

Oracle University and Error : You are not a Valid Partner use only
2. Create a list region called Tasks in the Home region.
a. In the GMT application home page, click 1 - Home.

b. In the Rendering tab, right-click Regions and select Create Region.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Region tab, enter the following value for the respective fields:
1) Identification > Title = Tasks
2) Identification > Type = List
3) Source > List = Home Page List

Oracle University and Error : You are not a Valid Partner use only
d. To view the list, run the page. Click the Save and Run Page icon.

e. The list is displayed. Click the View Products link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. The Products page is displayed. Click the Edit Page 11 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
3. Create a Dynamic List showing all the Products on the Products page. Create the List
Region on the Products page by using the same Create List Wizard.
a. On the Products page, click the Shared Components icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Navigation section, click Lists.

Oracle University and Error : You are not a Valid Partner use only
c. Click Create >.

d. Accept the default and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter List of Products for Name and select Dynamic for Type. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Select Build Query.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. In the Create Dynamic List window, select PRODUCTS for Table or View. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Select PRODUCT_NAME(Nvarchar2) for Label Column and
CATALOG_URL(Varchar2) for Target Column. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j.
i.
Click Finish.

Click Next >.

Chapter 12 - Page 16
Practices for Lesson 12: Adding Shared Components that Aid Navigation
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Select Create list region on current page for Create List Regions?, and Page
Template Body (3) for Region Position. Click Create.

Oracle University and Error : You are not a Valid Partner use only
l. The Dynamic list is created. Click the Run Page 11 icon.

m. Scroll to the bottom of the page. The list appears. You will now make the list collapsible
and Collapsed by default. Click the Edit Page 11 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Select Regions > Body 3 > List of Products in the Rendering tab.

Oracle University and Error : You are not a Valid Partner use only
o. In the Region tab, select Appearance > Template > Collapsible.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

p. Click the button in the Appearance > Template Options field.

Oracle University and Error : You are not a Valid Partner use only
q. Change the Common > Default State to Collapsed and click OK.

Note: By default, the collapsible region is expanded.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

r. Click the Save and Run Page icon.

s. Notice that the List of Products is now displayed in a collapsible region and the region

Oracle University and Error : You are not a Valid Partner use only
is collapsed by default. Expand the List of Products region by clicking the arrow next
to it.

t. The list is now expanded. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 12-2: Creating and Editing Navigation Menu


Overview
In this practice solution, steps are provided for creating and editing navigation menu for the
GMT application.

Steps
1. Create a navigation menu called Orders for the GMT application. It should be the current

Oracle University and Error : You are not a Valid Partner use only
tab for the List of Orders page. Sequence the Orders entry before the Products navigation
entry.
a. Click the Shared Components icon.

b. In the Navigation section, click Navigation Menu.

c. Click the Desktop Navigation Menu link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click the Create List Entry > link to add a new navigation entry.

Note the Sequence number of the Products entry.

Oracle University and Error : You are not a Valid Partner use only
e. Enter the following values for the respective fields:
1) Enter 25 for sequence. (Note: The sequence value should be between the
Customers and Products sequence value.)
2) Enter Orders for List Entry Label.
3) Select the List of Orders page number (Page 8) for Page.
4) Select Comma Delimited Page List for List Entry Current for Page Type.
5) Enter the List of Orders page number (Page 8) for List Entry Current for
Condition.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Click the Create List Entry button.

Oracle University and Error : You are not a Valid Partner use only
2. Assign the Master Detail page to the Orders navigation entry. Run the application and
confirm that the navigation is created successfully.
a. Click the Grid Edit button.

b. Add the Master Detail page number (Page 9) in the Current for Pages field of the
Orders row. Delimit the page numbers by using a comma.

c. Click the Apply Changes button.

d. Click the Run Page 11 icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. The Products tab is displayed. Click the Orders tab.

Oracle University and Error : You are not a Valid Partner use only
f. The List of Orders page is displayed. Click the Edit icon for the first entry.

g. The Master Detail page is displayed. Notice that the Orders tab is still active. Click the
Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Create a page called Help, and then add a new navigation menu entry called Help, to the
existing navigation menu. The new Help entry will link to the new Help page.
a. You want to create a new page that will contain the help information. Click Create
Page >.

Oracle University and Error : You are not a Valid Partner use only
b. Select Blank Page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. For Page Number, enter 14. For Name, enter Help and click Next >.

Oracle University and Error : You are not a Valid Partner use only
d. Select the Create a new navigation menu entry option for Navigation Preference.
Enter Help for New Navigation Menu Entry, and then click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Click Finish.

Oracle University and Error : You are not a Valid Partner use only
f. Run the page to see the new navigation menu entry. Click the Save and Run Page
icon.

g. The navigation menu entry is displayed. In the next practice, you add a region to the
Help page and add it as a navigation bar entry. Click the Edit Page 14 link on the
Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 12-3: Adding Navigation Bar Entries


Overview
In this practice solution, steps are provided for adding navigation bar entries to the GMT
application.

Steps
1. Create a navigation bar entry called Help that navigates to the Help page. Run the page

Oracle University and Error : You are not a Valid Partner use only
and click the Help navigation bar entry.
a. Click the Shared Components icon.

b. Under Navigation, click Navigation Bar List.

c. Click the Desktop Navigation Bar link.

d. Click Create List Entry >.

e. Enter the following value for the respective fields:


1) Entry > List Entry Label = Help
2) Target > Page = 14
3) Target > Request = &APP_PAGE_ID.
Note: By specifying the &APP_PAGE_ID. bind variable as the request, you are
instructing the Oracle Application Express engine to display the Help text for the
current page when the user clicks the navigation bar entry link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
f. Click Create List Entry.

g. Click the Application 1 breadcrumb.

h. Click Run Application.

i. Click the Help navigation bar entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. The Help page is displayed. You want to modify the Navigation Bar such that the Help
button is displayed before Log Out. Click the Edit Page 14 link on the Developer
toolbar.

Oracle University and Error : You are not a Valid Partner use only
k. Click the Shared Components icon.

l. Under Navigation, click Navigation Bar List.

m. Click the List Details tab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Notice the sequence value of the Log Out and the Help entry. Click the Grid Edit
button.

Oracle University and Error : You are not a Valid Partner use only
o. Change the Sequence of the Help entry to 5 and click Apply Changes.

Note: The screenshot is truncated to reduce size.


p. Click the Run Page 14 icon.

q. Notice that the Help button appears before the Log Out button in the Navigation Bar.
You want to add a help text region on the Help page so that the help for the active
page will be displayed. Click the Edit Page 14 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

r. Right-click Regions and select Create Region.

Oracle University and Error : You are not a Valid Partner use only
s. In the Region panel, enter the following value for the respective fields:
1) Identification > Title = Help
2) Identification > Type = Help Text

t. Click the Save button.

u. You need to enter some help text for a page. Enter the Customers page number
(Page 5) in the Page Finder field and click Go.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

v. In the Rendering panel, select the Customers page entry.

Oracle University and Error : You are not a Valid Partner use only
w. In the Page tab, scroll down to the Help subtab. Enter This page provides
information about Customers in the Help Text area and click the Save and Run
Page icon.

x. On the Customers page, select the Help Navigation Bar entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

y. Notice that the Help text from the page definition is displayed. Click the Edit Page 14
link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
z. Click the Shared Components icon.

2. Change the name of the navigation bar entry for Log Out to Sign Off.
a. Under the Navigation tab, click the Navigation Bar List link.

b. Click the Desktop Navigation Bar link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click the Log Out link.

Oracle University and Error : You are not a Valid Partner use only
d. Change the List Entry Label to Sign Off and click Apply Changes.

3. Add a navigation bar entry called Home such that it appears between the Help and Sign
Off button. Display the navigation bar entry on all pages except the Home page.
a. Click Create List Entry >.

b. Enter the following value for the respective fields:


1) Entry > Sequence = 7
2) Entry > List Entry Label = Home
3) Target > Page = Home (Page 1)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

4) Conditions > Condition Type = Current page != Expression 1


5) Conditions > Expression 1 = 1

Oracle University and Error : You are not a Valid Partner use only
c. Click the Create List Entry button.

d. Click the Run Page 14 icon.

e. Note that the Home link is displayed at the top of the page. Click the Home tab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. You see that the Home link is no longer displayed in the Navigation bar list. Click the
Customers tab.

Oracle University and Error : You are not a Valid Partner use only
g. Notice that the Home navigation bar entry is displayed again.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 12-4: Adding Breadcrumbs to an Existing Page


Overview
In this practice solution, steps are provided for creating breadcrumbs and adding it to the
existing pages of the GMT application.

Steps
1. Edit the existing breadcrumb for the GMT application and create a breadcrumb entry for the

Oracle University and Error : You are not a Valid Partner use only
Customers page. Run the customers page. Is the breadcrumb displayed on the page?
a. You are currently on the Customers page. Notice that there is no Breadcrumb on this
page. Click the Edit Page 5 link on the Developer toolbar.

b. Click the Shared Components icon.

c. Under Navigation, click the Breadcrumbs link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click the Breadcrumb icon.

Oracle University and Error : You are not a Valid Partner use only
e. Click Create Breadcrumb Entry >.

f. Click the [5] quick pick for Page on the Breadcrumb tab. Select Home (Page 1) for
Parent Entry and enter Customers for Short Name under Entry. Enter 5 for Page
under Target and click Create Breadcrumb Entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click the Run Page 5 icon.

h. Note that the breadcrumb you created is not reflected. This is because there is no
breadcrumb region on this page. Click the Edit Page 5 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
2. Create a breadcrumb region on the Customers page and run the page.
a. In the Rendering panel, right-click Regions and select Create Region.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Ensure that the newly created Region is selected. In the Region tab, enter the following
value for the respective fields:
1) Identification > Title = Breadcrumb
2) Identification > Type = Breadcrumb
3) Source > Breadcrumb = Breadcrumb
4) Layout > Position = Breadcrumb Bar

Oracle University and Error : You are not a Valid Partner use only
c. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Note that now the breadcrumb is seen. Click the Edit icon next to any row in the report.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. On the Customer Details page, create a breadcrumb called Customer Details whose
parent entry is the Customers page.
a. The Customer Details page does not have any breadcrumbs. You want to add one that
has a parent entry to the Customers report on page 5. Click the Edit Page 7 link on the
Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
b. Right-click Regions and select Create Region.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 43
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Ensure that the newly created Region is selected. In the Region tab, enter the following
value for the respective fields:
1) Identification > Title = Breadcrumb
2) Identification > Type = Breadcrumb
3) Source > Breadcrumb = Breadcrumb
4) Layout > Position = Breadcrumb Bar

Oracle University and Error : You are not a Valid Partner use only
d. Click the Save button.

e. You have a created a breadcrumb region. Now you will create a breadcrumb. Click the
Shared Components icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Under Navigation, click Breadcrumbs.

Oracle University and Error : You are not a Valid Partner use only
g. Click the Breadcrumb icon.

h. Click Create Breadcrumb Entry >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 45
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the [7] quick pick for Page on the Breadcrumb tab. Select Customers (Page 5)
for Parent Entry and enter Customer Details for Short Name under Entry. Enter
7 for Page under Target and click Create Breadcrumb Entry.

Oracle University and Error : You are not a Valid Partner use only
j. The Breadcrumb entry is created. Click the Run Page 7 icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 46
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Notice that the breadcrumb is now displayed. Click the Application 1 link on the
Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 12: Adding Shared Components that Aid Navigation
Chapter 12 - Page 47
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Chapter 12 - Page 48
Practices for Lesson 12: Adding Shared Components that Aid Navigation
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 13:
Working with Themes,
Templates, and Files
Chapter 13

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 13: Overview


Practices Overview
There are three practices for this lesson. In these practices, you create a theme from the
repository, edit the theme templates, and upload and apply a CSS in the GlobalMart
Management Tool application.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 13-1: Creating a Theme from the Repository


Overview
In this practice, you create a theme for the GlobalMart Management Tool by using the theme
repository.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the catch
up section of this practice.

Tasks
1. Create a new theme by using the Theme repository.
2. Switch the theme of your application to the newly created theme. What do you observe?

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Login to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 12-4, perform the following steps:
a. Login to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_12_04.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 13-2: Editing Templates


Overview
In this practice, you customize the template according to the requirements of the GlobalMart
Management Tool.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the catch
up section of this practice.

Tasks
1. Upload the logo.png image from your /home/oracle/labs/labs/ directory and add
it as a logo for your application.
2. On your Home page (Page 1), change the Tasks list to appear on the right side of the page,
vertically.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Login to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 13-1, perform the following steps:
a. Login to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_13_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 13-3: Uploading and Applying a CSS


Overview
In this practice, you upload a CSS file and apply it to the pages of the GMT application to
enhance its look and feel.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the catch
up section of this practice.

Tasks
1. Upload the apexstyle.css file from the /home/oracle/labs/labs/ directory.
2. Add the cascading style sheet to the Help region on the Help page.
3. Change the Help text to use the new style, bigblue, by using the following script (located in
/home/oracle/labs/labs/lab_13_03.txt):
<span class=”bigblue”>No help is available for this page.</span>

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Login to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 13-2, perform the following steps:
a. Login to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_13_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 13-1: Creating a Theme from the Repository


Overview
In this practice solution, steps are provided for creating a theme for the GlobalMart Management
Tool by using the theme repository.

Steps
1. Create a new theme by using the Theme repository.

Oracle University and Error : You are not a Valid Partner use only
a. In the GlobalMart Management Tool application home page, click Shared
Components.

b. Under User Interface, click Themes.

c. Notice that there are two existing themes currently in the list. To create a new theme,
click the Create > button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Ensure that From the Repository method is select and click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. Select User Interface as Desktop and click Next >.

f. Select Theme Type as All Themes, Theme as Midnight Blue (Theme 3) and click
Next >.

g. Click Create.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Switch the theme of your application to the newly created theme. What do you observe?
a. To use the theme that you just created in your application, you must switch to that
theme. Click Switch Theme.

Oracle University and Error : You are not a Valid Partner use only
b. Select Currently Active Theme from the drop-down list, in this case, 42. Universal
Theme. Make sure 3. Midnight Blue is selected for Switch to Theme and click
Next >.

c. Notice that you receive an error message when you click the Next > button. This is
because of compatibility issues between the themes. The existing theme, i.e. the
Universal Theme, uses list-based navigation whereas the newly created theme uses
tab-based navigation. Hence, switching the theme is not possible. Click the Shared
Components breadcrumb.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 13-2: Editing Templates


Overview
In this practice solution, steps are provided for customizing the template according to the
requirements of the GlobalMart Management Tool.

Steps
1. Upload the logo.png image from your /home/oracle/labs/labs/ directory and add

Oracle University and Error : You are not a Valid Partner use only
it as a logo for your application.
a. Under Files, click the Static Application Files link.

b. Click Upload File >.

c. Select the logo.png file in your /home/oracle/labs/labs/ folder for File and
click Upload.

d. Notice that the file is uploaded. Copy the reference of the file.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. You will now add the logo to your application. Click the Shared Components
breadcrumb.

f. Under User Interface, click the User Interface Attributes link.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that the User Interface sub tab is selected and click Logo.

h. Select the Logo Type as Image and enter the reference that you copied
(#APP_IMAGES#logo.png) for Logo. Click Apply Changes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Run the page. Click the Run Application icon.

Oracle University and Error : You are not a Valid Partner use only
j. Note that all your pages display the logo. Make sure that you are on the Home page
and click the Edit Page 1 link on the Developer toolbar.

2. On your Home page (Page 1), change the Tasks list to appear on the right side of the page,
vertically.
a. You want to modify the Tasks region. Before modifying that, you need to change the
page property. In the Rendering tab, select Page 1: Home.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Page tab, select Right Side Column for Appearance > Page Template.

Oracle University and Error : You are not a Valid Partner use only
c. In the Grid Layout, drag the Tasks region and drop in inside the right column area.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
d. Click the Save and Run Page icon.

e. The Tasks region is in place. Click the Edit Page 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 13-3: Uploading and Applying a CSS


Overview
In this practice solution, steps are provided for uploading the CSS file and applying it to the
pages of the GMT application to enhance its look and feel.

Steps
1. Upload the apexstyle.css file from the /home/oracle/labs/labs/ directory.

Oracle University and Error : You are not a Valid Partner use only
a. Click the Shared Components icon.

b. Under Files, click the Static Application Files link.

c. Click Upload File >.

d. Select the apexstyle.css file in your /home/oracle/labs/labs/ folder for File


and click Upload.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Notice that the file is uploaded. Copy the reference of the file.

Oracle University and Error : You are not a Valid Partner use only
f. When you view the CSS file, you will notice that the name of the style is bigblue. Click
the Edit Page icon.

2. Add the cascading style sheet to the Help region on the Help page.
a. Navigate to the Help page. Enter the page number of the help page (Page 14) in the
Page Finder field and click Go.

b. You first need to add the style sheet to the Help page. In the Rendering tab, ensure
that Page 14: Help is selected.

c. In the CSS > File URLs field, enter the reference to the uploaded file.
#APP_IMAGES#apexstyle.css

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Change the Help text to use the new style, bigblue, by using the following script (located in
/home/oracle/labs/labs/lab_13_03.txt):
<span class=”bigblue”>No help is available for this page.</span>
a. In the Page tab, enter the following for the Help Text field (located in
/home/oracle/labs/labs/lab_13_03.txt):
<span class=”bigblue”>No help is available for this page.</span>

Oracle University and Error : You are not a Valid Partner use only
Note: Do not copy the script from this document. Copy the script from the TXT file only.
b. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. The style sheet is successfully applied to the Help page.

Oracle University and Error : You are not a Valid Partner use only
d. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 13: Working with Themes, Templates, and Files
Chapter 13 - Page 18
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 1
Chapter 14

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.


Implementing Security
Practices for Lesson 14:

Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 14: Overview


Practices Overview
There are three practices for this lesson. In these practices, you examine how to implement
security within your application.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 14-1: Creating an Authentication Scheme


Overview
In this practice, you create an authentication scheme, and then make it the current default.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Create an authentication scheme called OpenDoor based on the Open Door credentials.
2. Switch the current authentication schema to Application Express.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 13-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_13_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 14-2: Restricting Users by Using Access Control


Overview
In this practice, you create an access control page, set the application mode to restrict access,
create the access control list, and assign application components to an authorization scheme.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create the following users to add to the access control list.
Name User Type
brad.knight Developer
susie.parker Workspace Administrator
john.bell End User
2. Create an access control page for the GMT application.
3. Set the application mode to Restricted access. Only users defined in the access
control list are allowed.
4. Add users to the access control list:
 john.bell can only view the information in the application; he cannot make any
changes to application data.
 brad.knight should be allowed to edit application data, but he cannot change
application administration settings (application mode and the access control list).
 susie.parker is the administrator of the application, so she can change anything in
addition to changing the user privileges.
 apex is also an administrator of the application.
5. Define and apply the authorization schemes to each application component. This will
restrict access to application pages and components.
 Users with the View privilege can review customer information, but cannot change or
create information.
 Users with the Edit privilege can make changes to customer information but cannot
make changes to the application mode and the access control list.
 Users with the Administrator privilege can make any changes, including administering
the GMT application.
6. Run the application and log in as a different user. What do you observe?

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click the Upload > button.


d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.

Oracle University and Error : You are not a Valid Partner use only
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_14_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 14-3: Enabling Session State Protection


Overview
In this practice, you enable Session State Protection, set the Session State Protection for a
particular item, and review the various options for page access protection so that you can
examine their differences.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Set the Page Access Protection for the Employee Commission page to No URL Access.
2. Add a Commission button to the Top Tier Salary page that redirects to the Employee
Commission page. Run the page to see that there is an error because of the branch.
3. Edit the Commission button to submit the page and create a Branch to Page branch that
will go to the Employee Commission page without passing the URL.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_14_02a.sql file in the
/home/oracle/labs/solutions directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.
k. Sign out of Application Express.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. Log in to the Application Express workspace as the apex_admin user.


m. Click the arrow next to SQL Workshop and select SQL Scripts.
n. Click the Upload > button.
o. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
p. Run the script by clicking the Run icon.
q. Click Run Now.
r. Make sure that the script executed successfully and three users (brad.knight,

Oracle University and Error : You are not a Valid Partner use only
susie.parker, and john.bell) are created.
s. Log in to the Application Express workspace as the apex user.
t. Click the arrow next to SQL Workshop and select SQL Scripts.
u. Click the Upload > button.
v. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
w. Run the script by clicking the Run icon.
x. Click Run Now.
y. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 14-1: Creating an Authentication Scheme


Overview
In this practice solution, steps are provided for creating an authentication scheme for the
GlobalMart Management Tool.

Steps
1. Create an authentication scheme called OpenDoor based on the Open Door credentials.

Oracle University and Error : You are not a Valid Partner use only
a. In the application home page, click Shared Components.

b. Under Security, click the Authentication Schemes link.

c. Click Create >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Leave the default value of Based on a pre-configured scheme from the gallery and
click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. For Name, enter OpenDoor and select the Open Door Credentials option for the
Scheme Type. Click Create Authentication Scheme.

f. Click the Run Page icon.

g. To log in to the system, enter you name in the Username field, and then click Login. If
you are already logged in, click Sign Off and perform this step.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. The Home page is displayed. In the next practice, you will use access control to set up
authorization to certain pages and buttons. Click the Application 1 link on the
Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
2. Switch the current authentication schema to Application Express.
a. Navigate to the Shared Components page. Click the Shared Components icon.

b. Under Security, select Authentication Schemes.

c. Click the Application Express Authentication link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click Make Current Scheme.

Oracle University and Error : You are not a Valid Partner use only
e. Click OK.

f. Application Express Authentication is now the current scheme. Click the Run Page
icon again.

g. Click Sign Off.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Notice that the Log In page uses the Application Express authentication login now
instead of the OpenDoor login. Click the Application 1 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 14-2: Restricting Users by Using Access Control


Overview
In this practice solution, steps are provided for restricting users to access the GlobalMart
Management Tool by using Access Control.

Steps
1. Create the following users to add to the access control list.

Oracle University and Error : You are not a Valid Partner use only
Name User Type
brad.knight Developer
susie.parker Workspace Administrator
john.bell End User
a. Log out of Application Express. Click the Account Menu icon at the top-right section of
the page and select Sign out.

b. Click the Return to Sign In Page button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Log in as the apex_admin user (workspace administrator).

Oracle University and Error : You are not a Valid Partner use only
d. Click the Administration icon and select Manage Users and Groups.

e. Click Create User >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Enter the following information and click Create and Create Another.
1) Username: brad.knight
2) Email Address: brad.knight@oracle.com
3) Default Schema: OEHR
4) Select No for the User is a workspace administrator option.
5) Select Yes for the User is a developer option.
6) Password: <refer the password document>

Oracle University and Error : You are not a Valid Partner use only
7) Confirm Password: <refer the password document>
8) Select No for Require Change of Password on First Use.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
g. Enter the following information and click Create and Create Another.
1) Username: susie.parker
2) Email Address: susie.parker@oracle.com
3) Default Schema: OEHR
4) Select Yes for the User is a workspace administrator option.
5) Password: <refer the password document>
6) Confirm Password: <refer the password document>
7) Select No for Require Change of Password on First Use.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
h. Enter the following information and click Create User.
1) Username: john.bell
2) Email Address: john.bell@oracle.com
3) Default Schema: OEHR
4) Select No for the User is a workspace administrator option.
5) Select No for the User is a developer option.
6) Password: <refer the passwords document>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

7) Confirm Password: <refer the passwords document>


8) Select No for Require Change of Password on First Use.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. The new users are now in the list. Click the View Icons button.

Oracle University and Error : You are not a Valid Partner use only
j. Click the Account Menu icon at the top-right section of the page and select Sign out.

k. Click Return to Sign In Page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Create an access control page for the GMT application.


a. Log in to the workspace. Enter the apex user credentials and click Sign In.

Oracle University and Error : You are not a Valid Partner use only
b. Navigate to the GlobalMart Management Tool application. Click the GlobalMart
Management Tool link under Top Applications.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c.

d.
Click Create Page >.

Select Access Control.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 21
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter 15 for Administration Page Number and click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. For Navigation Preference, select Create a new navigation menu entry. Enter
Admin for New Navigation Menu Entry, select - No parent selected - for Parent
Navigation Menu Entry and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click Create.

Oracle University and Error : You are not a Valid Partner use only
h. Click the Save and Run Page icon.

i. Log in as the apex user.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Set the application mode to Restricted access. Only users defined in the access
control list are allowed.
a. The access control page is displayed. Here is where you set the application mode and
add users to the access control list. For Application Mode, select Restricted access.
Only users defined in the access control list are allowed, and click Set
Application Mode.

Oracle University and Error : You are not a Valid Partner use only
4. Add users to the access control list:
 john.bell can only view the information in the application; he cannot make any
changes to application data.
 brad.knight should be allowed to edit application data, but he cannot change
application administration settings (application mode and the access control list).
 susie.parker is the administrator of the application, so she can change anything in
addition to changing the user privileges.
 apex is also an administrator of the application.
a. The application mode has been set. Now, users whose credentials are defined in the
access control list can access your GlobalMart Management Tool application. To add
your privileged users, click Add User.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. You want John Bell to only be able to view the information in your application. He
cannot make any changes to application data. Enter john.bell as Username and
select View for Privilege. Then click Add User.

Oracle University and Error : You are not a Valid Partner use only
c. You want Brad Knight to be able to edit the information in your application, but not be
able to change any of the administration options. Enter brad.knight as Username
and select Edit for Privilege. Then click Add User.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. You want Susie Parker to be able to edit the information in your application as well as
update the administration access control list. Enter susie.parker as Username and
select Administrator for Privilege. Click Add User.

Oracle University and Error : You are not a Valid Partner use only
e. Lastly, you want apex to have administrator access. Enter apex as Username and
select Administrator for Privilege. Click Apply Changes.

5. Define and apply the authorization schemes to each application component. This will
restrict access to application pages and components.
 Users with the View privilege can review customer information, but cannot change or
create information.
 Users with the Edit privilege can make changes to customer information but cannot
make changes to the application mode and the access control list.
 Users with the Administrator privilege can make any changes, including administering
the GMT application.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

a. You can define which areas of the application are restricted. Click the Application 1
link on the Developer toolbar.

b. You can restrict access for users with the View privilege to customer information. On
the GlobalMart Management Tool application home page, click the Customers page.

Oracle University and Error : You are not a Valid Partner use only
c. In the Rendering tab, select Regions > Content Body > Customer Report >
Attributes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Attributes tab, select access control - edit for Authorization Scheme under
Link.
Note: If the report were a classic report, you would modify the CUSTOMER_ID attribute
and set the authorization in the column attribute definition instead of at the report level
(as in an interactive report).

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. You want the Create Button to appear only if the user has the Edit or Administrator
privilege. To achieve this, you must set the authorization scheme accordingly. Under
Buttons for the Customer Report region, select CREATE.

Oracle University and Error : You are not a Valid Partner use only
f. In the Button tab, scroll down to the Security tab. Select access control - edit for
Authorization Scheme and click Save.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. You also want to protect against direct access to a page. Even though you restricted a
user who did not have the Edit privilege from editing or creating users on the
Customers page, he or she can still access Customer Details if the correct URL is
entered. To prevent this from happening, you must restrict Customer Details to only
users with the Edit privilege. In the Page Finder, enter the page number of the
Customer Details page (in this case, 7) and click Go.

Oracle University and Error : You are not a Valid Partner use only
h. In the Rendering tab, select Page 7: Customer Details.

i. In the Page tab, select access control - edit for Authorization Scheme under
Security.

j. Click the Save button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Click the Application 1 breadcrumb to return to the GlobalMart Management Tool


application home page.

l. Enter admin in the search area and click Go.

Oracle University and Error : You are not a Valid Partner use only
m. Because users with the Administrator privilege are only allowed to make changes to
the access control list, you must set the authorization scheme for the Access Control
Administration page. Click Access Control Administration Page.

n. In the Rendering tab, select Page 15: Access Control Administration Page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. In the Page tab, select access control - administrator for the Authorization Scheme
under Security and click Save.

Oracle University and Error : You are not a Valid Partner use only
6. Run the application and log in as a different user. What do you observe?
a. Now you are ready to run the application. In the Page Finder field, enter 1 for Page and
click Go.

b. Click the Save and Run Page icon.

c. If you are already logged in, click Sign Off.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Enter login credentials of brad.knight and click Log In.

Oracle University and Error : You are not a Valid Partner use only
e. In the Tasks tab, click View Customers.

f. Notice that Brad can edit customer information and can see the Create button. Click
the Admin tab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. You receive an error because you need the Administrator privilege to access this page.
Click OK.

Oracle University and Error : You are not a Valid Partner use only
h. Click Sign Off.

i. Enter login credentials of john.bell and click Log In.

j. Click View Customers.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. John has the View privilege only and, therefore, cannot edit customer information.
Also, the Create button is not displayed for him.

Oracle University and Error : You are not a Valid Partner use only
l. Change the page number in your URL to try to access the Customer Details page.
Press the Enter key:
Example url .../f?p=1:5:10844288601242:::::
Change to .../f?p=1:7:10844288601242:::::
Notice the change of page number in the URL.

m. Notice that you receive a message denying access to the page, because access to the
Customer Details page is restricted to users with the Edit privilege. Click OK.

n. Lastly, you want to log in as Susie Parker who is an administrator. Click Sign Off.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. Enter login credentials of susie.parker and click Log In.

Oracle University and Error : You are not a Valid Partner use only
p. Click the Admin tab.

q. Notice that because Susie is an Administrator, you can access this page. Click the
Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 14-3: Enabling Session State Protection


Overview
In this practice solution, steps are provided for enabling session state protection in the
GlobalMart Management Tool.

Steps
1. Set the Page Access Protection for the Employee Commission page to No URL Access.

Oracle University and Error : You are not a Valid Partner use only
a. Click Shared Components.

b. Under Security, select Session State Protection.

c. Click the right arrow (>) next to Pages.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click the Page link for the Employee Commission page.

Oracle University and Error : You are not a Valid Partner use only
e. Select No URL Access for Page Access Protection and click Apply Changes.

2. Add a Commission button to the Top Tier Salary page that redirects to the Employee
Commission page. Run the page to see that there is an error because of the branch.
a. Enter the Application number of the GMT application followed by a colon and the page
number of the Top Tier Salary page in the search field (1:3) and press Enter.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, right-click the Top Tier Salary region and select Create Button.

Oracle University and Error : You are not a Valid Partner use only
c. In the Rendering tab, make sure that the newly created button is selected. In the
Button tab, enter the following value for the respective fields:
1) Identification > Button Name = Commission
2) Identification > Label = Commission (This value will be automatically populated.)
3) Layout > Button Position = Top of Region

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

4) Behavior > Action = Redirect to Page in this Application


5) Behavior > Target > Page = 6 (Page number of the Employee Commission page)

Oracle University and Error : You are not a Valid Partner use only
d. Click the Save and Run Page icon.

e. Click Commission.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Notice you receive an error indicating that you must create a Branch to the Page
branch that generates a page without a URL. Click OK.

Oracle University and Error : You are not a Valid Partner use only
3. Edit the Commission button to submit the page and create a Branch to Page branch that
will go to the Employee Commission page without passing the URL.
a. Click the Edit Page 3 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, make sure that the Commission button is selected. In the Button
tab, select Submit Page for Behavior > Action.

Oracle University and Error : You are not a Valid Partner use only
c. Now you need to create a Branch to Page branch. In the Page Designer, select the
Processing tab.

d. Right-click Branches and select Create Branch.

e. In the Branch tab, enter the following values for the respective fields:
1) Identification > Name = Go to Page 6
2) Execution Options > Point = After Processing
3) Behavior > Type = Page (Show only)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

4) Behavior > Page Number = 6 (Page number of the Employee Commission page)
5) Condition > When Button Pressed = Commission

Oracle University and Error : You are not a Valid Partner use only
f. You want the branch you just created to run before the one with no condition. Move the
branch you just created before the Go to Page 3 branch without a condition by using
the drag-and-drop mechanism.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 43
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click the Save and Run Page icon.

h. Click Commission.

Oracle University and Error : You are not a Valid Partner use only
i. The Employee Commission page is displayed. Review the URL. Notice that it no longer
passes the f?p= in the URL and it is rendered successfully. Click the Application 1
link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 14: Implementing Security


Chapter 14 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 15:
Managing Application
Navigation
Chapter 15

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 15: Overview


Practices Overview
In these practices, you build a hierarchical list with images, a database-driven report, a site
map, and enforce authorization on the site map.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 15-1: Building a Hierarchical List with Images


Overview
In this practice, you upload the images to the Home Page List that you have created in the
previous practices, assign the Pull-down menu with the images template to the List, change the
attributes of the Tasks region, and associate the region with each Parent List Entry.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Change the Home Page List to the following list structure and add icons for each parent
entry:
Sequence List Entry Label Parent List Entry Page Number
10 Manage Customers
12 View Customers Manage Customers 5
20 Manage Products
22 View Products Manage Products 11
30 Manage Orders
32 View Orders Manage Orders 8
2. In the Home page, change the region template of Tasks to no template, the List Template
to Navigation Bar, and the Page Template to Theme Default.
3. Run the page to see the Home Page List. Click the parent entry to show the sublist entries.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Run the script by clicking the Run icon.


f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the

Oracle University and Error : You are not a Valid Partner use only
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 14-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_14_03.sql file in the
/home/oracle/labs/solutions directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 15-2: Building a Database-Driven Report


Overview
In this practice, you build a report based on the data in a table, and then navigate to the detail.
You also change the template to the Navigation Region template.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a new page with a Classic Report called List of Customers.
2. Hide the CUSTOMER_ID column in the report and turn off pagination. Display the Customer
Name column heading in blue by editing the column definition and entering the following for
Column Heading.
<font color=”blue”>CUSTOMERS</font>
3. Create a link to the Customer Details page on the NAME column. Pass the
P7_CUSTOMER_ID item from the Customer Details page with the value #CUSTOMER_ID#
from this page.
4. Run the page to see the database-driven report.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click the Upload > button.


k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 15-1, perform the following steps:

Oracle University and Error : You are not a Valid Partner use only
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_15_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 15-3: Building a Site Map


Overview
In this practice, you build a site map page that is added as a navigation bar entry.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Assign each page that you want in the site map to the same page group. Create a Page
Group called Site Map and assign the following pages to the Site Map page group.
Pages
Customers
List of Orders
Products
Customer Feedback
Access Control Administration Page
2. Create a new page called Site Map with a Classic Report that shows only the pages in the
Site Map page group.
3. Change the Pagination Scheme to None and do not show the PAGE_ID column. Link the
PAGE_NAME column to the #PAGE_ID# so that it opens the corresponding page when
clicked.
4. Add this page to your navigation bar and call it Site Map.
5. Run the page and click one of the page names to view the corresponding page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

If you haven’t completed Practice 14-2, perform the following steps:


a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 15-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_15_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 15-4: Enforcing Authorization in Site Map


Overview
In this practice, you add a function that determines whether you are authorized to see a
particular page in your site map. You also change the SQL Report query for the Site Map to
make sure that the page is selected only if you are authorized to see it.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Navigate to SQL Workshop > SQL Commands. Copy and paste the following code
(located in the /home/oracle/labs/labs/lab_15_04_01.txt file) to create the
authorization_check function.
create or replace function authorization_check(
p_scheme in varchar2)
return varchar2
is
begin
if apex_util.public_check_authorization(p_scheme) then
return 'true';
else
return 'false';
end if;
end;
2. For Site Map, change the Source for your Classic Report to the following code (also located
in the /home/oracle/labs/labs/lab_15_04_02.txt file), so that only the pages
that are authorized will be shown based on the user logged in.
select distinct PAGE_ID, PAGE_NAME
from APEX_APPLICATION_PAGES p, apex_application_authorization a
where p.APPLICATION_ID = :APP_ID
and a.application_id = p.application_id
and (p.authorization_scheme is null or
(a.authorization_scheme_id = p.authorization_scheme_id and
authorization_check(a.authorization_scheme_name) = 'true'))
and PAGE_GROUP = 'Site Map'
3. You do not want end users or developers to see the Access Control Administration page.
Make sure that the Authorization Schemes for this page is set to access control -
Administrator. Run the page to see if only an authorized user can view it.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

a. Log in to the Application Express workspace as the apex_admin user.


b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

Oracle University and Error : You are not a Valid Partner use only
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 15-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_15_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 15-1: Building a Hierarchical List with Images


Overview
In this practice solution, steps are provided for building a hierarchical list with images.

Steps
1. Change the Home Page List to the following list structure and add icons for each parent
entry:

Oracle University and Error : You are not a Valid Partner use only
Sequence List Entry Label Parent List Entry Page Number
10 Manage Customers
12 View Customers Manage Customers 5
20 Manage Products
22 View Products Manage Products 11
30 Manage Orders
32 View Orders Manage Orders 8
a. Click the Shared Components icon.

b. Under Navigation, select Lists.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select Home Page List.

Oracle University and Error : You are not a Valid Partner use only
d. Click View Customers to edit this List Entry detail.

e. In the Entry section, change View Customers to Manage Customers for List Entry
Label. In the Target section, change the Target type to - No Target -. In the Entry
section, click the up arrow for the Image/Class field.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
f. Make sure that Font Awesome Icons is selected in the Show drop down. Select fa-
users from the list.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click Apply Changes.

h. Click Create List Entry >.

Oracle University and Error : You are not a Valid Partner use only
i. Select Manage Customers for Parent List Entry, enter 12 for Sequence, and enter
View Customers for List Entry Label. In the Target section, make sure that Target
type is set to Page in this Application and the Page is 5 (the page number
corresponding to the Customers page). Then click Create List Entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. There is an easy way to modify your entries. Click Create List Entry >.

k. In the Entry section, enter 20 for Sequence, and enter Manage Products for List
Entry Label. In the Target section, set the Target type to - No Target -. In the Entry
section, click the up arrow for the Image/Class field.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. Make sure that Font Awesome Icons is selected in the Show drop down. Select fa-
cubes from the list.

Oracle University and Error : You are not a Valid Partner use only
m. Click Create List Entry.

n. Click View Products.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. Select Manage Products for Parent List Entry, enter 22 for Sequence. Click Apply
Changes.

Oracle University and Error : You are not a Valid Partner use only
p. Click Create List Entry >.

q. In the Entry section, enter 30 for Sequence, and enter Manage Orders for List
Entry Label. In the Target section, set the Target type to - No Target -. In the Entry
section, click the up arrow for the Image/Class field.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
r. Make sure that Font Awesome Icons is selected in the Show drop down. Select fa-
dollar from the list.

s. Click Create List Entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

t. Click View Orders.

Oracle University and Error : You are not a Valid Partner use only
u. Select Manage Orders for Parent List Entry, enter 32 for Sequence. Click Apply
Changes.

2. In the Home page, change the region template of Tasks to no template, the List Template
to Navigation Bar, and the Page Template to Theme Default.
a. In the search field, enter the application number followed by colon and the home page
number (1:1) and press Enter.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, select the Tasks region.

Oracle University and Error : You are not a Valid Partner use only
c. In the Region tab, make the following changes:
1) Layout > Sequence = 5
2) Layout > Position = Content Body
3) Appearance > Template = - Select -

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Rendering tab, select Tasks > Attributes.

Oracle University and Error : You are not a Valid Partner use only
e. In the Attributes tab, change the List Template value to Navigation Bar.

f. In the Rendering tab, select Page 1: Home.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. In the Page tab, change the Appearance > Page Template value to Theme Default.

Oracle University and Error : You are not a Valid Partner use only
3. Run the page to see the Home Page List. Click the parent entry to show the sublist entries.
a. Click the Save and Run Page icon.

b. The page is displayed. Click any parent entry to see the sublist.

c. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 15-2: Building a Database-Driven Report


Overview
In this practice solution, steps are provided for building a database-driven navigation report.

Steps
1. Create a new page with a Classic Report called List of Customers.
a. In the GlobalMart Management Tool application home page, click Create Page >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c.
b.
Select Report.

Select Classic Report.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 24
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Enter 16 for Page Number, and List of Customers for Page Name and Region
Name. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. Accept the default and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. For Report Source, select SQL Query and enter the following query (located in the
/home/oracle/labs/labs/lab_15_02.txt file). Click Next >.
SELECT cust_first_name||’ ‘||cust_last_name as Name, customer_id
FROM customers

Oracle University and Error : You are not a Valid Partner use only
g. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Click Create.

Oracle University and Error : You are not a Valid Partner use only
2. Hide the CUSTOMER_ID column in the report and turn off pagination. Display the Customer
Name column heading in blue by editing the column definition and entering the following for
Column Heading.
<font color=”blue”>CUSTOMERS</font>
a. In the Rendering tab, select Regions > Content Body > List of Customers >
Attributes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Attributes tab, select No Pagination (Show All Rows) from the Pagination >
Type drop-down list.

Oracle University and Error : You are not a Valid Partner use only
c. In the Rendering tab, select Regions > Content Body > List of Customers >
Columns > CUSTOMER_ID.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Column tab, select Identification > Type as Hidden Column.

Oracle University and Error : You are not a Valid Partner use only
e. In the Rendering tab, select the NAME column.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. In the Column tab, change the Identification > Heading to:


<font color=”blue”>CUSTOMERS</font>

Oracle University and Error : You are not a Valid Partner use only
3. Create a link to the Customer Details page on the NAME column. Pass the
P7_CUSTOMER_ID item from the Customer Details page with the value #CUSTOMER_ID#
from this page.
a. In the Column tab, change Identification > Type to Link.

b. Click the No Link Defined button under the Link subtab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select the Customer Details page for Page (in this case 7) by clicking the arrow to the
right of the Page field. Under Set Items, select P7_CUSTOMER_ID for Name and
CUSTOMER_ID for Value. Click OK.

Oracle University and Error : You are not a Valid Partner use only
d. Under the Link section, enter #NAME# for Link Text.

4. Run the page to see the database-driven report.


a. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Click any one customer to view the details.

Oracle University and Error : You are not a Valid Partner use only
c. The Customer Details page is displayed for the customer.

d. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 15-3: Building a Site Map


Overview
In this practice solution, steps are provided for building a site map.

Steps
1. Assign each page that you want in the site map to the same page group. Create a Page
Group called Site Map and assign the following pages to the Site Map page group.

Oracle University and Error : You are not a Valid Partner use only
Pages
Customers
List of Orders
Products
Customer Feedback
Access Control
Administration Page
a. In the GlobalMart Management Tool home page, click Utilities.

b. Select Page Groups under Page Specific Utilities.

c. Click Create >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Enter Site Map for Name and click Create.

Oracle University and Error : You are not a Valid Partner use only
e. Click the Page Assignments tab.

f. Select Site Map from the New Group drop-down list. Then select the check box next
to each of the following pages and click Assign Checked.
Pages
Customers
List of Orders
Products
Customer Feedback
Access Control
Administration Page

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
2. Create a new page called Site Map with a Classic Report that shows only the pages in the
Site Map page group.
a. Click the Utilities breadcrumb.

b. Select Application Express Views.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Enter Application_Pages in the search area and click Go.

d. Select the APEX_APPLICATION_PAGES view.

Oracle University and Error : You are not a Valid Partner use only
e. On the Select Columns tab, if PAGE_NAME is not included in the list on the right, then
select PAGE_NAME column and click the right arrow (>) to move it to the columns
selected list. Similarly, you do not want to display the WORKSPACE_DISPLAY_NAME.
Select WORKSPACE_DISPLAY_NAME and click the left arrow (<) to move it to the
column list on the left. Click Filter >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Select PAGE_GROUP for Column and enter ‘Site Map’ for Value. Click Results >.

Oracle University and Error : You are not a Valid Partner use only
g. Notice that the pages you selected earlier are on the list. Expand Query.

h. Select the query and copy it to your clipboard.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the Application Builder pull-down menu and select Database Applications.

Oracle University and Error : You are not a Valid Partner use only
j. Select GlobalMart Management Tool application.

k. Click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l.
Select Report.

m. Select Classic Report.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 39
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Enter 17 for Page Number, and Site Map for Page Name and Region Name, and
click Next >.

Oracle University and Error : You are not a Valid Partner use only
o. Accept the default and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

p. Select SQL Query for Source Type. Paste your query in the SQL area and click
Next >. You can also copy and paste the query from the
/home/oracle/labs/labs/lab_15_03.txt file.
select WORKSPACE, APPLICATION_ID, APPLICATION_NAME, PAGE_ID,
PAGE_NAME
from APEX_APPLICATION_PAGES
where PAGE_GROUP = 'Site Map'

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

q. Select No for CSV Output and click Next >.

Oracle University and Error : You are not a Valid Partner use only
r. Click Create.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Change the Pagination Scheme to None and do not show the PAGE_ID column. Link the
PAGE_NAME column to the #PAGE_ID# so that it opens the corresponding page when
clicked.
a. In the Rendering tab, under Regions, select Site Map > Attributes.

Oracle University and Error : You are not a Valid Partner use only
b. Select No Pagination (Show All Rows) from the Pagination > Type drop-down list.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 43
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Rendering tab, under Regions, select Columns > PAGE_ID.

Oracle University and Error : You are not a Valid Partner use only
d. In the Column tab, select Identification > Type as Hidden Column.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. In the Rendering tab, under Regions, select Columns > PAGE_NAME.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 45
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. In the Column tab, select Identification > Type as Link. Click the No Link Defined
button under Link > Target.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 46
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Make sure that Page in this application is selected for Target > Type and enter
#PAGE_ID# in the Page text box. Click OK.

Oracle University and Error : You are not a Valid Partner use only
h. Enter #PAGE_NAME# for Link Text and click the Save button.

4. Add this page to your navigation bar and call it Site Map.
a. Click the Shared Components icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 47
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Select Navigation Bar List under Navigation.

Oracle University and Error : You are not a Valid Partner use only
c. Click Desktop Navigation Bar.

d. Click Create List Entry >.

e. Enter Site Map for List Entry Label. Select your Site Map page number for Page
(Page 17) and click Create List Entry.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 48
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Change the Sequence of the Site Map such that it appears before Sign Off. Click Grid
Edit.

Oracle University and Error : You are not a Valid Partner use only
g. Change the Sequence of Site Map to 8 and click Apply Changes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 49
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

5. Run the page and click one of the page names to view the corresponding page.
a. Click the Run Page icon.

b. Click one of the Page Names to view the corresponding page.

Oracle University and Error : You are not a Valid Partner use only
c. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 50
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 15-4: Enforcing Authorization in Site Map


Overview
In this practice solution, steps are provided for enforcing authorization in site map.

Steps
1. Navigate to SQL Workshop > SQL Commands. Copy and paste the code provided in step
b (also located in the /home/oracle/labs/labs/lab_15_04_01.txt file) to create

Oracle University and Error : You are not a Valid Partner use only
the authorization_check function.
a. Click the SQL Workshop pull-down menu and select SQL Commands.

b. Paste the following code (located in the


/home/oracle/labs/labs/lab_15_04_01.txt file) to create the
authorization_check function. Click Run.
create or replace function authorization_check(
p_scheme in varchar2)
return varchar2
is
begin
if apex_util.public_check_authorization(p_scheme) then
return 'true';
else
return 'false';
end if;
end;

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 51
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. The function is created successfully. Click the Application Builder pull-down menu
and select Database Applications.

Oracle University and Error : You are not a Valid Partner use only
2. For Site Map, change the Source for your Classic Report to the code in step d (also located
in the /home/oracle/labs/labs/lab_15_04_02.txt file), so that only the pages
that are authorized will be shown based on the user logged in.
a. Click the GlobalMart Management Tool application icon.

b. Select the Site Map page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 52
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Under Regions, select Site Map.

Oracle University and Error : You are not a Valid Partner use only
d. Paste the following code (located in the
/home/oracle/labs/labs/lab_15_04_02.txt file) in the Source > SQL Query
text box.
select distinct PAGE_ID, PAGE_NAME
from APEX_APPLICATION_PAGES p, apex_application_authorization a
where p.APPLICATION_ID = :APP_ID
and a.application_id = p.application_id
and (p.authorization_scheme is null or
(a.authorization_scheme_id = p.authorization_scheme_id and
authorization_check(a.authorization_scheme_name) = 'true'))
and PAGE_GROUP = 'Site Map'

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 53
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. You do not want end users or developers to see the Access Control Administration page.
Make sure that the Authorization Schemes for this page is set to access control -
Administrator. Run the page to see if only an authorized user can view it.
a. Click the Save and Run Page icon.

Oracle University and Error : You are not a Valid Partner use only
b. Notice that you are currently logged in as susie.parker due to which you currently
see the Access Control Administration Page in the site map list. Click Sign Off.

c. To check the Site Map as a developer, log in as brad.knight.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 54
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the navigation bar, click Site Map.

Oracle University and Error : You are not a Valid Partner use only
e. Brad Knight does not have access to the Access Control Administration page, so you
no longer see it in the Site Map list. Click Sign Off.

f. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 55
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 15: Managing Application Navigation


Chapter 15 - Page 56
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 16:
Extending Your Application
Chapter 16

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 16: Overview


Practices Overview
In these practices, you add advanced features to your application by creating Data Load Wizard
pages, upload and download page and BLOB data to your report and form.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 16-1: Creating Data Load Wizard Pages


Overview
In this practice, you create a series of wizard pages to upload data into the
PRODUCT_INFORMATION table.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. You create a series of wizard pages to upload data into the PRODUCT_INFORMATION table.
2. Test the upload by using the following data (located in the
/home/oracle/labs/labs/lab_16_01.txt file). Use the Copy and Paste Delimited
Data area.
PRODUCT_ID PRODUCT_NAME PRODUCT_DESCRIPTION
CATEGORY_ID WEIGHT_CLASS WARRANTY_PERIOD
SUPPLIER_ID PRODUCT_STATUS LIST_PRICE MIN_PRICE
3194 LED Monitor 15/PM Light Emitting Diode 15 inch passive
monitor. The virtually-flat, high-resolution screen delivers
outstanding image quality with reduced glare. 11 3 +03-
00 102067 under development 259 208
3195 LCD Monitor 20/PM Liquid Cristal Display 20 inch passive
monitor. Enjoy the productivity that a small monitor can bring
via more workspace on your desk. Easy setup with plug-and-play
compatibility 11 3 +03-00 102061 orderable 249
206
3196 Plastic Stock - B/HD Plastic Stock - Black, high density.
39 1 +03-00 103095 orderable 3 2

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

If you haven’t completed Practice 14-2, perform the following steps:


a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click the Upload > button.


d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.

Oracle University and Error : You are not a Valid Partner use only
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 15-4, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_15_04.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 16-2: Adding an Upload and Download Page


Overview
In this practice, you create a form in an HTML region with a file upload item and a button. The
button will submit the page and return the user to the same page. Also, you create a report on
the document table that has links to download documents. Provide links to download the
documents in the report.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a blank page called Upload Download Files with an HTML region called Submit File
that contains a File Browse item type on the source type
APEX_APPLICATION_TEMP_FILES. Create a Submit button and upload the
OracleLogo.png file from the /home/oracle/labs/labs directory.
Note that every time you upload a script in SQL Workshop or upload a file in Shared
Components for an application, the reference to the file is placed in the
APEX_APPLICATION_TEMP_FILES table.
2. Create an Interactive Report subregion called Uploaded Files with the following SQL query
(located in /home/oracle/labs/labs/lab_16_02.txt):
SELECT id, filename FROM APEX_APPLICATION_TEMP_FILES order by
created_on desc
3. Modify the report to create a link on the ID column to download the file.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.

Oracle University and Error : You are not a Valid Partner use only
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.
If you haven’t completed Practice 16-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_16_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 16-3: Adding BLOB Data to Your Report and Form


Overview
In this practice, you add binary large object (BLOB) columns to your CUSTOMERS table, create
a form with a report, add a thumbnail image to your report, and add a delete item region to the
form.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Upload and run the addblob.sql script contained in your /home/oracle/labs/labs
directory to alter the CUSTOMERS table with the BLOB columns.
2. Add the Photo column to the Customer Details page.
3. Change the Customers Report to include the Photo column.
4. Add a Delete Image region by creating a new HTML region called Photo Image.
5. Create a Display Image item in the Photo Image region called P7_IMAGE that shows the
image.
6. Create a delete button called DELETE_IMAGE. Create a PL/SQL process called “Delete
Image” that is invoked to perform the delete operation. Run the page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in them.

Oracle University and Error : You are not a Valid Partner use only
If you haven’t completed Practice 16-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_16_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 16-1: Creating Data Load Wizard Pages


Overview
In this practice you create a series of wizard pages to upload data into the
PRODUCT_INFORMATION table.

Steps
1. You create a series of wizard pages to upload data into the PRODUCT_INFORMATION table.

Oracle University and Error : You are not a Valid Partner use only
a. In the GlobalMart Management Tool application home page, click Create Page >.

b. Select the Data Loading page type.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Enter Load Products for Data Load Definition Name, select


PRODUCT_INFORMATION (table) for Table Name, and PRODUCT_ID (Number)
for Unique Column 1. Then click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. You want to create a rule that will change the Product Name to uppercase. Enter
Upper Product Name for Rule Name, select PRODUCT_NAME (Varchar2) and
click the right arrow (>) to select it, and select To Upper Case for Type. Click Add.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e.
The rule is added. Click Next >.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 12
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. You do not want to create a table lookup. Click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Set the page numbers to 18, 19, 20, and 21 (as shown in the screenshot) and click
Next >.

Oracle University and Error : You are not a Valid Partner use only
h. You want to create a new navigation menu entry. Select create a new navigation
menu entry, enter Data Load for the New Navigation Menu Entry, and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. You need to specify which page to go to when you click Cancel and Finish. Enter 1
(Home Page) for both the Cancel Button Branch to Page and Finish button Branch
to Page. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
j. You are ready to create the Data Load Wizard pages. Click Create.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Click the Save button.

l. Because Data Load Wizard Pages cannot be run directly, navigate to GlobalMart
Management Tool application home page and then run the application. Enter 1 in the
Page Finder and click Go.

Oracle University and Error : You are not a Valid Partner use only
m. Click the Save and Run Page icon.

2. Test the upload by using the following data (located in the


/home/oracle/labs/labs/lab_16_01.txt file). Use the Copy and Paste Delimited
Data area.
PRODUCT_ID PRODUCT_NAME PRODUCT_DESCRIPTION
CATEGORY_ID WEIGHT_CLASS WARRANTY_PERIOD
SUPPLIER_ID PRODUCT_STATUS LIST_PRICE MIN_PRICE
3194 LED Monitor 15/PM Light Emitting Diode 15 inch passive
monitor. The virtually-flat, high-resolution screen delivers
outstanding image quality with reduced glare. 11 3 +03-
00 102067 under development 259 208
3195 LCD Monitor 20/PM Liquid Cristal Display 20 inch passive
monitor. Enjoy the productivity that a small monitor can bring
via more workspace on your desk. Easy setup with plug-and-play
compatibility 11 3 +03-00 102061 orderable 249
206
3196 Plastic Stock - B/HD Plastic Stock - Black, high density.
39 1 +03-00 103095 orderable 3 2
a. In the Log In page, enter the apex user credentials and click Log In.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Click Data Load in the navigation menu of the GlobalMart Management Tool
application home page.

Oracle University and Error : You are not a Valid Partner use only
c. The first wizard page is where you specify the Data Load Source. You want to Copy
and Paste the following text (located in the
/home/oracle/labs/labs/lab_16_01.txt file) into the Copy and Paste
Delimited Data area. Use the Separator as ‘\t’ (tab space) and select the Yes check
box for First Row has Column Names. Then click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. The Data / Table Mapping is displayed. Make sure that the Column Name for all the
columns are selected. Otherwise, select the corresponding column names from their
respective pull-down menus and click Next.

Oracle University and Error : You are not a Valid Partner use only
e. The Data Validation page is displayed. This page displays the data that will be inserted
and/or updated into the database. Notice that the PRODUCT_NAME was transformed
to all uppercase. Click Load Data.

f. Notice that three rows were inserted. Click Finish.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Switch to the Page Designer window in your browser. Click SQL Workshop and select
Object Browser.

Oracle University and Error : You are not a Valid Partner use only
h. In the Object Browser, select the PRODUCT_INFORMATION table.

i. The PRODUCT_INFORMATION table definition is displayed. Click the Data tab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click the Query button

k. Select all columns and enter 3194 in the Column Condition field for PRODUCT_ID

Oracle University and Error : You are not a Valid Partner use only
l. Scroll down and click Query.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

m. The newly inserted row with PRODUCT_ID = 3194 is displayed. Click < New Query.

Oracle University and Error : You are not a Valid Partner use only
n. Make sure that all the columns are selected and enter 3195 in the Column Condition
field for PRODUCT_ID.

o. Scroll down and click Query.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

p. The newly inserted row with PRODUCT_ID = 3195 is displayed. Click < New Query.

Oracle University and Error : You are not a Valid Partner use only
q. Select all columns and enter 3196 in the Column Condition field for PRODUCT_ID.

r. Scroll down and click Query.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

s. The newly inserted row with PRODUCT_ID = 3196 is displayed.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 16-2: Adding an Upload and Download Page


Overview
In this solution, you create a form in an HTML region with a file upload item and a button. The
button will submit the page and return the user to the same page. Also, you create a report on
the document table that has links to download documents. Provide links to download the
documents in the report.

Steps

Oracle University and Error : You are not a Valid Partner use only
1. Create a blank page called Upload Download Files with an HTML region called Submit File
that contains a File Browse item type on the source type
APEX_APPLICATION_TEMP_FILES. Create a Submit button and upload the
OracleLogo.png file from the /home/oracle/labs/labs directory.
Note that every time you upload a script in SQL Workshop or upload a file in Shared
Components for an application, the reference to the file is placed in the
APEX_APPLICATION_TEMP_FILES table.
a. Click the Application Builder pull down in the navigation bar and select Database
Applications.

b. Click the GlobalMart Management Tool application icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click Create Page >.

Oracle University and Error : You are not a Valid Partner use only
d. Select the Blank Page page type.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter Page Number as 22. For Name, enter Upload Download Files and click
Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Leave the defaults for the Navigation Preference and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g.
Click Finish.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 27
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. The Upload Download Files page is created and opened in the page designer view.
Drag Static Content < / > region from Regions gallery to the Content Body of the
Grid Layout tab.

Oracle University and Error : You are not a Valid Partner use only
i. Ensure that the newly created region is selected in the Rendering tab. In the Region
panel, enter Submit File for Identification > Title.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Drag File Browse item from Items gallery to Items in Content Body on the Grid
Layout of the page.

Oracle University and Error : You are not a Valid Partner use only
k. Ensure that the new item is selected in the Rendering tab. In the Page Item tab, enter
the following values for the respective fields:
1) Identification > Item Name = P22_FILE_NAME
2) Settings > Storage Type = Table APEX_APPLICATION_TEMP_FILES

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. You want to create a Submit button that will perform the upload. Drag HTML Button
(legacy – APEX 5 migration) from Buttons gallery to the P22_FILE_NAME item in
the Submit File region on the Grid Layout of the page.

Oracle University and Error : You are not a Valid Partner use only
m. Enter P22_SUBMIT for Identification > Button Name and Submit for Identification >
Label.

n. Select Yes for Appearance > Hot.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. Click Use Template Defaults next to the Template Options field under Appearance.

Oracle University and Error : You are not a Valid Partner use only
p. Select Large for Size and click OK.

q. Click the Save and Run icon.

r. Click the Browse button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

s. Select the /home/oracle/labs/labs/OracleLogo.png file and click Open.

Oracle University and Error : You are not a Valid Partner use only
t. Click Submit to upload the file.

u. The file is submitted. At this point, you want to create a report to show the list of files
that are uploaded already. Click the Edit Page 22 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Create an Interactive Report subregion called Uploaded Files with the following SQL query
(located in /home/oracle/labs/labs/lab_16_02.txt):
SELECT id, filename FROM APEX_APPLICATION_TEMP_FILES order by
created_on desc
a. You will create the report as a subregion. Right-click the Submit File region and select
Create Sub Region.

Oracle University and Error : You are not a Valid Partner use only
b. Ensure that the new subregion is selected in the Rendering tab. In the Region tab,
enter the following values for the respective fields and click the Save and Run Page
icon:
1) Identification > Title = Uploaded Files
2) Identification > Type = Interactive Report
3) Source > SQL Query = <Copy the SQL query from
/home/oracle/labs/labs/lab_16_02.txt and paste here>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. The report that you just created shows all the documents that have been uploaded.
Note that your list may be different depending on what you uploaded. Next, you provide
a link to download the document. Click the Edit Page 22 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only
3. Modify the report to create a link on the ID column to download the file.
a. In the Rendering tab, select Uploaded Files > Attributes.

b. In the Attributes tab, select Link to Custom Target for Link > Link Column.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click the No Link Defined button next to Link > Target.

Oracle University and Error : You are not a Valid Partner use only
d. Select URL for Target > Type and enter p?n=#ID# for URL. Click OK.

e. Click the Save and Run Page icon.

f. The report is displayed with a link (pencil icon) to download the file. Click the
Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 16-3: Adding BLOB Data to your Report and Form


Overview
In this practice, you add binary large object (BLOB) columns to your CUSTOMERS table, create a
form with a report, add a thumbnail image to your report, and add a delete item region to the
form.

Steps

Oracle University and Error : You are not a Valid Partner use only
1. Upload and run the addblob.sql script contained in your /home/oracle/labs/labs
directory to alter the CUSTOMERS table with the BLOB columns.
a. Navigate to SQL Workshop > SQL Scripts.

b. Click Upload >.

c. Click Browse and select the addblob.sql file (located in the


/home/oracle/labs/labs directory) and click Open. Then click Upload.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Your script is uploaded successfully. To run it, click the Run icon.

Oracle University and Error : You are not a Valid Partner use only
e. Click Run Now.

f. Click the View Results icon.

g. The CUSTOMERS table was altered successfully.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Click the Application Builder pull-down menu and select Database Applications.

Oracle University and Error : You are not a Valid Partner use only
i. Click the GlobalMart Management Tool application icon.

2. Add the Photo column to the Customer Details page.


a. In the GlobalMart Management Tool application home page, click Customer Details.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Drag the File Browse item from the Items gallery to under Items in Content Body in
the Grid Layout section of the page.

Oracle University and Error : You are not a Valid Partner use only
c. In the Rendering tab, ensure that the new item is selected. In the Page tab, enter the
following values for the respective fields:
1) Identification > Item Name = P7_PHOTO
2) Settings > MIME Type Column = MIMETYPE
3) Settings > Filename Column = FILENAME
4) Settings > BLOB Last Updated Column = LAST_UPDATE_DATE
5) Settings > Display Download Link = Yes
6) Settings > Content Disposition = Attachment
7) Source > Source Type = Database Column
Note: The value for a few fields will get auto populated.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d.

Practices for Lesson 16: Extending Your Application


Click the Save and Run Page icon.

Chapter 16 - Page 40
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. The page is displayed. Before you add a photo, you want to select a customer. Click
Cancel.

Oracle University and Error : You are not a Valid Partner use only
f. Click the Edit icon next to the first row.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click the Browse button.

Oracle University and Error : You are not a Valid Partner use only
h. Select the custpic.jpg file (located in the /home/oracle/labs/labs/ directory)
and click Open. Then click Apply Changes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i.
Edit the first row again.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 43
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Note that there is a link to download the photo. Click the Download link.

Oracle University and Error : You are not a Valid Partner use only
k. You are prompted to open the attachment or save it. Accept the default to open it in the
Image Viewer. Click OK.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. The image is displayed. Close the Image Viewer window and the Downloads window.

Oracle University and Error : You are not a Valid Partner use only
m. Click the Customers breadcrumb to return to the customers report.

3. Change the Customers Report to include the Photo column.


a. Click Edit Page 5 on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 45
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, select Customer Report.

Oracle University and Error : You are not a Valid Partner use only
c. In the Region tab, replace Source > SQL Query in its property editor with the following
code (located in the /home/oracle/labs/labs/lab_16_03_01.txt file) and
click the Save button.
select c.customer_id,
c.cust_first_name||' '||c.cust_last_name name,
c.city,
c.cust_email,
(select last_name from employees where employee_id=
c.account_mgr_id) account_mgr,
dbms_lob.getlength(c.photo) photo
from customers c

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 46
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
d. Because you no longer have the CUST_FIRST_NAME column in the query (it was
changed to first and last name), you need to remove it from the link column area. In the
Rendering tab, select Regions > Customer Report > Attributes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 47
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Click the Page 7 button located next to the Link > Target field.

Oracle University and Error : You are not a Valid Partner use only
f. Notice the Item 2 items P7_CUST_FIRST_NAME and #CUST_FIRST_NAME#. These
no longer appear in the SQL Query of your report, so you need to remove them from
the link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 48
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Click OK.

Oracle University and Error : You are not a Valid Partner use only
h. Select Regions > Customer Report > Columns > PHOTO.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 49
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. In the Column tab, enter the following values for the respective fields:
1) Identification > Type = Display Image
2) BLOB Attributes > Table Name = CUSTOMERS
3) BLOB Attributes > BLOB Column = PHOTO
4) BLOB Attributes > Primary Key Column 1 = CUSTOMER_ID
5) BLOB Attributes > Mime Type Column = MIMETYPE
6) BLOB Attributes > Filename Column = FILENAME
7) BLOB Attributes > BLOB Last Updated Column = LAST_UPDATE_DATE

Oracle University and Error : You are not a Valid Partner use only
j. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 50
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. You need to add the columns you added to the SQL Query. Select Actions > Select
Columns.

Oracle University and Error : You are not a Valid Partner use only
l. Select the >> to move all the columns under Display in Report and click Apply.

m. All the columns are displayed in the report. Click the Edit icon for the second row.

4. Add a Delete Image region by creating a new HTML region called Photo Image.
a. Click the Edit Page 7 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 51
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, right-click the &P7_CUST_FIRST_NAME.


&P7_CUST_LAST_NAME. Customer Details region and select Create Sub Region

Oracle University and Error : You are not a Valid Partner use only
c. Ensure that the new subregion is selected in the Rendering tab. In the Region tab,
enter the following value for the respective fields:
1) Identification > Title = Photo Image
2) Identification > Type = Static Content
3) Condition > Type = PL/SQL Function Body
4) Condition > PL/SQL Function Body = <Enter the following code located in the
/home/oracle/labs/labs/lab_16_03_02.txt file>
DECLARE
BEGIN
IF :P7_CUSTOMER_ID is not null then
FOR c1 IN (SELECT nvl(dbms_lob.getlength(photo),0) l
FROM customers
WHERE customer_id = :P7_CUSTOMER_ID)
LOOP
IF c1.l > 0 THEN
RETURN true;
END IF;
END LOOP;
END IF;
RETURN false;
END;

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 52
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
5. Create a Display Image item in the Photo Image region called P7_IMAGE that shows the
image.
a. Drag the Display Image item from Items gallery to under Items in the Photo Image
subregion in the Grid Layout section of the page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 53
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Ensure that the new item is selected in the Rendering tab. In the Page Item tab, enter
the following values for the respective fields:
1) Identification > Item Name = P7_IMAGE
2) Label > Label = <Leave this field blank>
3) Settings > Based On = BLOB Column specified in Item Source
4) Settings > Filename Column = FILENAME
5) Settings > BLOB Last Updated Column = LAST_UPDATE_DATE
6) Source > Type = Database Column

Oracle University and Error : You are not a Valid Partner use only
7) Source > Database Column = PHOTO

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 54
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

6. Create a delete button called DELETE_IMAGE. Create a PL/SQL process called “Delete
Image” that is invoked to perform the delete. Run the page.
a. Drag HTML Button (legacy – APEX 5 migration) from Buttons gallery to under the
P7_IMAGE item in the Photo Image subregion.

Oracle University and Error : You are not a Valid Partner use only
b. Make sure that the new button is selected. Enter DELETE_IMAGE for Identification >
Button Name. Notice that the Label field gets automatically populated.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 55
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click Use Template Defaults under Appearance.

Oracle University and Error : You are not a Valid Partner use only
d. Select Large for Size and click OK.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 56
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Select Below Region for Layout > Button Position.

Oracle University and Error : You are not a Valid Partner use only
f. Click the Processing tab.

g. In the Processing tab, right-click Processing and select Create Process.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 57
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. In the Processing tab, ensure that the new process is selected. In the Process tab,
enter the following value for the respective fields:
1) Identification > Name = Delete Image
2) Identification > Type = PL/SQL Code
3) Execution Options > Sequence = 5 (so that it is executed before the DML
process)
4) Source > PL/SQL Code = <located in the
/home/oracle/labs/labs/lab_16_03_03.txt file>

Oracle University and Error : You are not a Valid Partner use only
-- empty the image
update customers
set photo = null,
mimetype = null,
filename=null,
last_update_date=null
where customer_id = :P7_CUSTOMER_ID;

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 58
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Enter success and error messages. Enter Successfully deleted! for Success
Message and Error in deleting! for Error Message. Select DELETE_IMAGE
for Condition > When Button Pressed.

Oracle University and Error : You are not a Valid Partner use only
j. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 59
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Click the Cancel button.


Note: If you don’t see values in the Customer Details field, it is because the session
state values are cleared.

Oracle University and Error : You are not a Valid Partner use only
l. Edit the first row (the row with the image).

m. The image is displayed. Click the Delete Image button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 60
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. The image was deleted. Notice that the image is no longer displayed in the report.
Click the Edit icon for the same row.

Oracle University and Error : You are not a Valid Partner use only
o. The image is no longer available to download and the Delete Image region is not
displayed. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 61
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 16: Extending Your Application


Chapter 16 - Page 62
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 17:
Creating and Editing Charts
Chapter 17

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 17: Overview


Practices Overview
In these practices, you will learn how to create and modify charts for desktop applications as
well as HTML 5 charts for mobile applications.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 17-1: Creating and Modifying Flash Charts


Overview
In this practice, you create a new chart with a Horizontal Bar – 3D Bar Chart. You then modify
the chart and change it to a 3D Column Chart and change some of the settings to see how they
work.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a new Flash chart page that includes a Horizontal Bar – 3D Bar Chart. Use
Employees by Department for the Title, Departments for the X-Axis, and Number
of Employees for the Y-Axis. Use the following query (located in
/home/oracle/labs/labs/lab_17_01.txt). Test your page.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d
where e.department_id = d.department_id
group by department_name
2. Modify your chart and change it to a 3D Column Chart with Look 7. Enter 45 for the X-
Axis Label Rotation and test your page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select apex_admin SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Click Run Now.


g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.

Oracle University and Error : You are not a Valid Partner use only
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 16-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_16_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 17-2: Creating HTML5 Chart in a Mobile Application


Overview
In this practice, you create an HTML5 chart for the GMT mobile application.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Create an HTML5 Pie & Doughnut chart for the mobile application. Use Departments
Chart for the Title. Use the following query (located in
/home/oracle/labs/labs/lab_17_02.txt). Test your mobile page.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d
where e.department_id = d.department_id
group by department_name

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.

Oracle University and Error : You are not a Valid Partner use only
If you haven’t completed Practice 17-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_17_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 17-3: Creating Additional Charts


Overview
In this practice, you create some additional charts, such as a combined chart, a project Gantt
chart, and a Gauge chart for the GlobalMart Management Tool application.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. You build a combined chart. First, you upload and run the add_employees3.sql script
to create a table called employees3.
2. Create a 3D Column HTML5 Chart named Salary Commission Combined Chart. Use
the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_01.txt file). Specify Employee for X-Axis
Title and Salary for Y-Axis Title. Edit the chart by changing the Series attribute to Line.
SELECT NULL LINK,
LAST_NAME LABEL,
SALARY "Salary",
COMMISSION_PCT "COMMISSION"
FROM EMPLOYEES3
WHERE MANAGER_ID = 100
Order by LAST_NAME
3. Upload and run the tasks_ddl.sql script to create a table called tasks1.
4. Create a Project Gantt Chart that uses the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_02.txt file).
SELECT NULL LINK,
tasks task_name, id, parent_id,
START_DATE, END_DATE,
STATUS,
START_DATE-3, END_DATE+2
from TASKS1
5. Create a Salary Gauge chart for employees who have more than 10,000 salary and are in
department 80. Use the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_03.txt file).
select sum(case when salary <10000 then 0 else 1 end) value,
count(*) max_value
from employees
where department_id=80

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

a. Log in to the Application Express workspace as the apex_admin user.


b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

Oracle University and Error : You are not a Valid Partner use only
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 17-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_17_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 17-1: Creating and Modifying Flash Charts


Overview
In this practice solution, steps are provided for creating and modifying flash charts.

Steps
1. Create a new Flash chart page that includes a Horizontal Bar – 3D Bar Chart. Use
Employees by Department for the Title, Departments for the X-Axis, and Number

Oracle University and Error : You are not a Valid Partner use only
of Employees for the Y-Axis. Use the following query (located in
/home/oracle/labs/labs/lab_17_01.txt). Test your page.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d
where e.department_id = d.department_id
group by department_name
a. In the GlobalMart Management Tool application home page, click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b.
Select Chart.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 10
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select Flash Chart for Chart Rendering and Horizontal Bar for Chart Type. Click
Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Make sure that 3D Bar Chart is selected and click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter 23 for Page Number, and Employees by Department for Page Name and
Region Name. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Accept the defaults and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Enter Employees by Department for Chart Title, Departments for X Axis Title,
and Number of Employees for Y Axis Title. Click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Enter the following SQL query (located in


/home/oracle/labs/labs/lab_17_01.txt) and click Next >.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d

Oracle University and Error : You are not a Valid Partner use only
where e.department_id = d.department_id
group by department_name

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click Create.

Oracle University and Error : You are not a Valid Partner use only
j. The page is created. Run the page by clicking the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Place your cursor over one of the bars to see the Department and its value.

Oracle University and Error : You are not a Valid Partner use only
Note: You might need to activate the Adobe Flash plug-in.
l. You now change the 3D Bar Chart to a 3D Column Chart and alter the way it looks.
Click the Edit Page 23 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Modify your chart and change it to a 3D Column Chart with Look 7. Enter 45 for the X-
Axis Label Rotation and test your page.
a. In the Rendering tab, select Attributes under Regions > Content Body > Employees
by Department.

Oracle University and Error : You are not a Valid Partner use only
b. In the Attributes tab, enter the following values for the respective fields:
1) Chart > Type = Column
2) Appearance > 3D Mode = Yes
3) Series Color > Scheme = Look 7
4) X Axis > Label Rotation = 45

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c.

Practices for Lesson 17: Creating and Editing Charts


Click the Save and Run Page icon.

Chapter 17 - Page 19
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Notice that the chart is now a 3D Column chart, the look is different, and the X-Axis
labels are rotated by 45 degrees. Click the Application 1 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 17-2: Creating HTML5 Chart in a Mobile Application


Overview
In this practice solution, steps are provided for creating HTML5 charts for the GMT mobile
application.

Steps
1. Create an HTML5 Pie & Doughnut chart for the mobile application. Use Departments

Oracle University and Error : You are not a Valid Partner use only
Chart for the Title. Use the following query (located in
/home/oracle/labs/labs/lab_17_02.txt). Test your mobile page.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d
where e.department_id = d.department_id
group by department_name
a. In the GlobalMart Management Tool application home page, click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Select Mobile for User Interface and select Chart.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select Pie & Doughnut for Chart Type.

Oracle University and Error : You are not a Valid Partner use only
d. Select 3D Pie.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter 24 for Page Number, and Departments Chart for both Page Name and
Region Name. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Accept the default and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Enter Employees by Department for Chart Title and click Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Enter the following SQL query (located in
/home/oracle/labs/labs/lab_17_02.txt) and click Next >.
select null link,
department_name chart_label,
count(*) chart_value
from employees e,
departments d
where e.department_id = d.department_id
group by department_name

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i.
Click Create.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 26
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click the Save and Run Page icon.

k. You may be asked to log in. Enter your login credentials and click Log In.

Oracle University and Error : You are not a Valid Partner use only
l. The Employees by Department chart is displayed. Switch window to the Page Designer
page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 17-3: Creating Additional Charts


Overview
In this practice solution, steps are provided for creating additional charts for the GlobalMart
Management Tool application.

Steps
1. You build a combined chart. First, you upload and run the add_employees3.sql script

Oracle University and Error : You are not a Valid Partner use only
to create a table called employees3.
a. Click the arrow in the SQL Workshop pull-down menu and select SQL Scripts.

b. Click Upload >.

c. Browse and select the /home/oracle/labs/labs/add_employees3.sql file and


click Upload.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click the Run icon in the new row to create the employees3 table.

Oracle University and Error : You are not a Valid Partner use only
e. Click Run Now.

f. Click the View Results icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. The results are displayed.

Oracle University and Error : You are not a Valid Partner use only
h. Click the arrow in the Application Builder pull-down menu and select Database
Applications.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Create a 3D Column HTML5 Chart named Salary Commission Combined Chart. Use
the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_01.txt file). Specify Employee for X-Axis
Title and Salary for Y-Axis Title. Edit the chart by changing the Series attribute to Line.
SELECT NULL LINK,
LAST_NAME LABEL,
SALARY "Salary",
COMMISSION_PCT "COMMISSION"

Oracle University and Error : You are not a Valid Partner use only
FROM EMPLOYEES3
WHERE MANAGER_ID = 100
Order by LAST_NAME
a. Click the GlobalMart Management Tool application icon to navigate to the home
page.

b. In your application, click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c.
Select Chart as page type.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 32
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Select HTML5 Chart from the Chart Rendering drop-down list. Make sure that
Column is selected for Chart Type and click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Select the 3D Column option.

Oracle University and Error : You are not a Valid Partner use only
f. Enter 25 for Page Number, and Salary Commission Combined Chart for Page
Name and Region Name. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Accept the default navigation preference and click Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Enter Salary Commission Combined Chart for Chart Title. Deselect the Show
Values check box. Specify Employees for X-Axis Title and Salary for Y-Axis Title.
For Show Legend, select the Right option. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
i. Use the following SQL query (located in the
/home/oracle/labs/labs/lab_17_03_01.txt) to enter in the SQL Query text
area. Click Next >.
SELECT NULL LINK,
LAST_NAME LABEL,
SALARY "Salary",
COMMISSION_PCT "COMMISSION"
FROM EMPLOYEES3
WHERE MANAGER_ID = 100
Order by LAST_NAME

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 37
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click Create.

Oracle University and Error : You are not a Valid Partner use only
k. In the Rendering Panel, select Regions > Content Body > Salary Commission
Combined Chart > Attributes > Series > Series 1.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. In the Series tab, select Line for Identification > Type.

Oracle University and Error : You are not a Valid Partner use only
m. Click the Save and Run Page icon.

n. You can now see a combination of salary as Line and commission as Bar charts. Place
your cursor over one of the points in the line chart.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. Click the Application 1 link on the Developer toolbar.

3. Upload and run the tasks_ddl.sql script to create a table called tasks1.
a. Click the arrow in the SQL Workshop pull-down menu and select SQL Scripts.

Oracle University and Error : You are not a Valid Partner use only
b. Click Upload >.

c. Browse and select the /home/oracle/labs/labs/tasks_ddl.sql file and click


Upload.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Click the Run icon in the new row to create the tasks1 table.

Oracle University and Error : You are not a Valid Partner use only
e. Click Run Now.

f. Click the View Results icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. The results are displayed.

Oracle University and Error : You are not a Valid Partner use only
h. Click the arrow in the Application Builder pull-down menu and select Database
Applications.

4. Create a Project Gantt Chart that uses the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_02.txt file).
SELECT NULL LINK,
tasks task_name, id, parent_id,
START_DATE, END_DATE,
STATUS,
START_DATE-3, END_DATE+2
from TASKS1
a. Click the GlobalMart Management Tool application icon to navigate to the home
page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In your application, click Create Page >.

Oracle University and Error : You are not a Valid Partner use only
c. Select Chart as page type.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 43
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Select Flash Chart from the Chart Rendering drop-down list. Make sure that Gantt is
selected for Chart Type and click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. Select Project Gantt.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Enter 26 for Page Number, and Project Gantt for Page Name and Region Name.
Click Next >.

Oracle University and Error : You are not a Valid Partner use only
g. Accept the default navigation preference and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 45
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Enter Project Gantt for Chart Title and click Next >.

Oracle University and Error : You are not a Valid Partner use only
i. Enter the following SQL Query and click Next >. Use
/home/oracle/labs/labs/lab_17_03_02.txt.
SELECT NULL LINK,
tasks task_name, id, parent_id,
START_DATE, END_DATE,
STATUS,
START_DATE-3, END_DATE+2
from TASKS1

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 46
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j.
Click Create.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 47
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Click the Save and Run Page icon.

l. The Gantt chart is displayed. If you place your cursor over one of the tasks, you will

Oracle University and Error : You are not a Valid Partner use only
see the details.

Note: You may need to activate Adobe Flash plug-in.


m. Click the Application 1 link on the Developer toolbar.

5. Create a Salary Gauge chart for employees who have more than 10,000 salary and are in
department 80. Use the following SQL Query (located in the
/home/oracle/labs/labs/lab_17_03_03.txt file).
select sum(case when salary <10000 then 0 else 1 end) value,
count(*) max_value
from employees
where department_id=80

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 48
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

a. In the application home page, click Create Page >.

Oracle University and Error : You are not a Valid Partner use only
b. Select Chart as page type.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 49
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select HTML5 Chart from the Chart Rendering drop-down list. Make sure that
Gauges is selected for Chart Type and click Next >.

Oracle University and Error : You are not a Valid Partner use only
d. Select Dial and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 50
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter 27 for Page Number, and Salary Gauge for Page Name and Region Name
and click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Accept the default navigation preference and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 51
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Enter Salary Gauge for Chart Title, Solid Color for Background Type, and
#FFFFF for Background Color 1. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Enter the following SQL (located in
/home/oracle/labs/labs/lab_17_03_03.txt) and click Next >.
select sum(case when salary <10000 then 0 else 1 end) value,
count(*) max_value
from employees
where department_id=80

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 52
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i.

Practices for Lesson 17: Creating and Editing Charts


On the confirmation page, click Create.

Chapter 17 - Page 53
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click the Save and Run Page icon.

k. The dial is displayed. Click the Application 1 link on the Developer toolbar.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 17: Creating and Editing Charts


Chapter 17 - Page 54
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 18:
Adding Calendars and Trees
Chapter 18

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 18: Overview


Practices Overview
In these practices, you will create a calendar page that displays the order total per day, create a
calendar for the GMT mobile application, and create a new page with a tree region and link to
the Dynamic Employee Details page.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 18-1: Creating a Calendar


Overview
In this practice, you create a calendar page that displays the order total per day. You also add a
link to the page to be able to edit the details of an order.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Execute the following command to update ORDER_DATE in the ORDERS table to make it
more current (located in the /home/oracle/labs/labs/lab_18_01.txt file).
UPDATE orders SET order_date = order_date + 5715
2. Create a new Calendar page called Order Calendar. Base the calendar on the ORDERS
table, and set the Date Column to ORDER_DATE and Display Column to ORDER_TOTAL.
Allow for dragging order total to different dates. Create a new edit page so that you can edit
all the columns in the ORDERS table. Test your pages.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Browse and upload the sol_14_02c.sql file in the


/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 17-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.

Oracle University and Error : You are not a Valid Partner use only
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_17_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 18-2: Adding a Calendar to a Mobile Application


Overview
In this practice, you add a calendar to your GlobalMart Management Tool mobile application.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Create a new page called Mobile Calendar for mobile application. Select Mobile User
Interface to create this page. Select Calendar. Base the calendar on the ORDERS table,
and set the Date Column to ORDER_DATE and Display Column to ORDER_TOTAL. Assign
the Link Target to create a new edit page, which contains all the columns from the ORDERS
table. Test your page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 18-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_18_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 18-3: Creating a Tree and Displaying it from a Different Page


Overview
In this practice, you create a new page with a tree region and link it to the Dynamic Employee
Details page. Add a button on the Dynamic Employee Details page to link back to the tree page.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a tree page called Employees by Manager that uses the default tree template.
Select the appropriate options in the wizard so that the current query (located in
/home/oracle/labs/labs/lab_18_03.txt) looks as follows:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"LAST_NAME" as title,
null as icon,
"EMPLOYEE_ID" as value,
null as tooltip,
null as link
from "OEHR"."EMPLOYEES"
start with "MANAGER_ID" is null
connect by prior "EMPLOYEE_ID" = "MANAGER_ID"
order siblings by "LAST_NAME"
2. Add a button to the Employee by Department page called Employee Hierarchy that
navigates to the Employees by Manager tree page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

If you haven’t completed Practice 14-2, perform the following steps:


a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 18-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_18_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 18-1: Creating a Calendar


Overview
In this practice solution, steps are provided for creating a calendar for the GlobalMart
Management Tool application.

Steps
1. Execute the following command to update ORDER_DATE in the ORDERS table to make it

Oracle University and Error : You are not a Valid Partner use only
more current (located in the /home/oracle/labs/labs/lab_18_01.txt file).
UPDATE orders SET order_date = order_date + 5715
a. To see data on your calendar, you may need to modify the dates. Click the arrow next
to SQL Workshop and select SQL Commands from the pull-down menu.

b. Enter the following SQL statement (located in the


/home/oracle/labs/labs/lab_18_01.txt file) and click Run. This statement
modifies the order dates in the ORDERS table so that they contain more recent dates
that will appear in the calendar created in the next set of steps.
UPDATE orders SET order_date = order_date + 5715

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click the arrow next to Application Builder and select Database Applications from
the pull-down menu.

Oracle University and Error : You are not a Valid Partner use only
2. Create a new Calendar page called Order Calendar. Base the calendar on the ORDERS
table, and set the Date Column to ORDER_DATE and Display Column to ORDER_TOTAL.
Allow for dragging order total to different dates. Create a new edit page so that you can edit
all the columns in the ORDERS table. Test your pages.
a. Select the GlobalMart Management Tool application.

b. Click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Select Calendar for page type.

Oracle University and Error : You are not a Valid Partner use only
d. Ensure that Calendar is selected and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Enter 28 for Page Number and Order Calendar for Page Name and Region Name
and click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Accept the default navigation preference and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Select Source Type as Table. From the Table / View Name drop-down list, select
ORDERS (table). By default, all the columns are selected. Click Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Make sure ORDER_TOTAL is selected for Display Column and ORDER_DATE is
selected for Start Date Column. Then click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Enter 29 for Create Page Number, 30 for Edit Page Number, and click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. For Primary Key Type, choose Select Primary Key Column(s). Select ORDER_ID
(Number) for Primary Key Column 1. Click the >> button to select all the columns.
Click Next >.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k.

Practices for Lesson 18: Adding Calendars and Trees


Accept the default and click Next >.

Chapter 18 - Page 16
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l.
Click Create.

Practices for Lesson 18: Adding Calendars and Trees


m. Click the Save and Run Page icon.

Chapter 18 - Page 17
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Find a month where there is an order total listed for a particular day (for example: July
2015). Click the amount link for the entry in July 8, 2015.

Oracle University and Error : You are not a Valid Partner use only
o. Change the Order Date to a different date in the same month by using the Date
Picker.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

p. Click Apply Changes.

Oracle University and Error : You are not a Valid Partner use only
q. The change is applied. Note that the Order Total is moved to the date you changed it
to.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

r. You can also drag an order total to a different day. Drag the same order total to July 3,
2015.

Oracle University and Error : You are not a Valid Partner use only
s. Note that after you release your mouse, the order total moves to the new location. Click
the Application 1 link on the Developer toolbar.

To learn more about what you can do with calendaring, install the Sample Calendars
packaged application.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 18-2: Adding a Calendar to a Mobile Application


Overview
In this practice solution, steps are provided for creating a calendar for the GMT mobile
application.

Steps
1. Create a new page called Mobile Calendar for mobile application. Select Mobile User

Oracle University and Error : You are not a Valid Partner use only
Interface to create this page. Select Calendar. Base the calendar on the ORDERS table,
and set the Date Column to ORDER_DATE and Display Column to ORDER_TOTAL. Assign
the Link Target to create a new edit page, which contains all the columns from the ORDERS
table. Test your page.
a. In the GlobalMart Management Tool application home page, click Create Page >.

b. Select Mobile for User Interface and Calendar for page type.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Click Legacy Calendar.

Oracle University and Error : You are not a Valid Partner use only
d. Enter 206 for Page Number. Enter Mobile Calendar for Page Name and Region
Name. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Accept the default navigation preference and click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Select Calendar Source as Table. From the Table / View Name drop-down list, select
ORDERS (table). Click Next >.

g. Select ORDER_DATE for Date Column, ORDER_TOTAL for Display Column, and
click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. Select Create new edit page for Link Target and enter the following values for the
respective fields and click Next >:
1) Source Table Primary Key Column = ORDER_ID
2) Page Number = 207
3) Table / View Name = ORDERS (table)
4) Date Column = ORDER_DATE (Timestamp(6) With Local Time Zone)
5) Primary Key Column = ORDER_ID (Number)
6) Select Column(s) = <Select all columns by clicking the (>>) arrow>

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i.

Practices for Lesson 18: Adding Calendars and Trees


Accept the defaults and click Next >.

Chapter 18 - Page 25
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click Create.

Oracle University and Error : You are not a Valid Partner use only
k. Click the Save and Run Page icon.

l. Enter your login credentials and click Log In.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

m. The calendar is displayed. You can create a new order in the current month by clicking
the Create Link.

Oracle University and Error : You are not a Valid Partner use only
Note: The screenshot may differ (date/month) from this step onwards.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. The Edit Calendar Entry form is displayed. To create a new order in the current month,
you enter the details and click Create. Note that if you were running this on a mobile
device you would receive a Date Picker when you click the Order Date item. Click
Cancel.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. In the Mobile Calendar page, notice that you see a blue dot on certain dates. Click the
List link.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

p. The list shows you the order total for that particular month grouped by order date. Click
the first entry.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

q. The form with the order details is displayed. To return to the Application Builder, switch
the window to the Page Designer in your browser.

Oracle University and Error : You are not a Valid Partner use only
r. Click the Application 1 link breadcrumb.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 18-3: Creating a Tree Whose Nodes Link to a Different Page


Overview
In this practice solution, steps are provided for creating a new page with a tree region and
linking it to the Dynamic Employee Details page in the GMT application.

Steps
1. Create a tree page called Employees by Manager that uses the default tree template.

Oracle University and Error : You are not a Valid Partner use only
Select the appropriate options in the wizard so that the current query (located in
/home/oracle/labs/labs/lab_18_03.txt) looks as follows:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"LAST_NAME" as title,
null as icon,
"EMPLOYEE_ID" as value,
null as tooltip,
null as link
from "OEHR"."EMPLOYEES"
start with "MANAGER_ID" is null
connect by prior "EMPLOYEE_ID" = "MANAGER_ID"
order siblings by "LAST_NAME"
a. In the GMT application home page, click Create Page >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b.
Select the Tree option.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 33
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Enter 31 for Page Number and Employees by Manager for Page Name and
Region Name, and click Next >.

Oracle University and Error : You are not a Valid Partner use only
d. Accept the default navigation preference and click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Select EMPLOYEES (table) for Table / View Name and click Next >.

Oracle University and Error : You are not a Valid Partner use only
f. Select the following values for the respective fields and click Next >:
1) ID = EMPLOYEE_ID (Number)
2) Parent ID = MANAGER_ID (Number)
3) Node Text = LAST_NAME (Varchar2)
4) Start With = MANAGER_ID (Number)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. You can see the query that is generated by expanding the Current Query tab. Click
Next >.

Oracle University and Error : You are not a Valid Partner use only
h. Select Database Column for Tooltip and FIRST_NAME (Varchar2) column for
Tooltip Column. Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click Create.

Oracle University and Error : You are not a Valid Partner use only
j. Click the Save and Run Page icon.

k. Expand one of the manager nodes. Notice that when you place your cursor over one of
the names, you see the FIRST_NAME of the person as a tooltip.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. Click the Application 1 link on the Developer toolbar.

2. Add a button to the Employee by Department page called Employee Hierarchy that
navigates to the Employees by Manager tree page.
a. To find all the Employees related pages in your application, enter employee in the
search area and click Go.

Oracle University and Error : You are not a Valid Partner use only
b. Select the Chart page you created earlier, Employees by Department.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Rendering tab, right-click Employees by Department region and select Create
Button. Alternatively, you can drag a HTML button into the Employees by Department
region from the Buttons gallery.

Oracle University and Error : You are not a Valid Partner use only
d. In the Button tab, enter the following values for the respective fields:
1) Identification > Button Name = Employee_Hierarchy
2) Identification > Label = <Field will be auto populated>
3) Layout > Button Position = Above Region
4) Behavior > Action = Redirect to Page in this Application
5) Behavior > Target > Page = 31 (Page number of the Employees by Manager
page)

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Click the Save and Run Page icon.

Oracle University and Error : You are not a Valid Partner use only
f. Click the Employee hierarchy button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g.

Practices for Lesson 18: Adding Calendars and Trees


The tree is displayed. Click Expand All.

Chapter 18 - Page 41
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. The tree is expanded.

Oracle University and Error : You are not a Valid Partner use only
i. Click the Application 1 link on the Developer toolbar.

j. Remove the filter on Row text contains ‘employee’.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 18: Adding Calendars and Trees


Chapter 18 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 19:
Using Dynamic Actions and
Plug-Ins
Chapter 19

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 19: Overview


Practices Overview
In these practices, you examine how dynamic actions and plug-ins work.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 19-1: Using Dynamic Actions on Your Page


Overview
In this practice, you create dynamic actions in the GMT application.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Show Item when another item is Not Null: In the Customer Details page, show
P7_CUST_EMAIL only if the P7_CUST_FIRST_NAME is not null.
2. Changing the Class when an item Is Null: In the Customer Details page, add a class to
the P7_CUST_EMAIL if the item is null. Add an inline class to your page definition (located
in the /home/oracle/labs/labs/lab_19_01_01.txt file). The dynamic action should
fire when the item loses focus.
3. Refreshing the data in a report using Custom filters: In the Customers page, create a
Quick Filter region with two select list items P5_CUSTOMER_ID and P5_CITY_ID. Create
a dynamic action on the select lists to refresh the report when the values of the select list
change. Make sure you add the two filter items to the Page Items to Submit.
• P5_CUSTOMER_ID SQL Query: Located in the
/home/oracle/labs/labs/lab_19_01_02.txt
• P5_CITY_ID SQL Query: Located in the
/home/oracle/labs/labs/lab_19_01_03.txt
• Customer Report WHERE clause: Located in the
/home/oracle/labs/labs/lab_19_01_04.txt

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Click Run Now.


g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.

Oracle University and Error : You are not a Valid Partner use only
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 18-3, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_18_03.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 19-2: Importing and Using Plug-Ins on Your Page


Overview
In this practice, you import and use an item type plug-in and a dynamic action plug-in.

Assumptions
You have completed the previous practices.
Note: If you haven’t completed the previous practices, execute the steps mentioned in the

Oracle University and Error : You are not a Valid Partner use only
Catch Up section of this practice.

Tasks
1. Add a rating column to the CUSTOMERS table.
2. Import the Star Rating Item Plug-In and the Notification Dynamic action Plug-in files.
3. Add the Star Rating Item Plug-in to your Customer Details page.
4. Add the Notification Dynamic Action Plug-in to your Master Detail page.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 19-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_19_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.

Oracle University and Error : You are not a Valid Partner use only
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 19-1: Using Dynamic Actions on Your Page


Overview
In this practice, you create various dynamic actions on your page as examples.

Steps
1. Show Item when another item is Not Null: In the Customer Details page, show
P7_CUST_EMAIL only if the P7_CUST_FIRST_NAME is not null.

Oracle University and Error : You are not a Valid Partner use only
a. In the GlobalMart Management Tool application home page, select the Customer
Details page (Page 7).

b. Click the Save and Run Page icon.

c. You want to add a dynamic action that shows the Cust Email field only when a Cust
First Name is entered. Click the Edit Page 7 icon on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Rendering tab, right-click P7_CUST_FIRST_NAME and select Create Dynamic


Action.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Ensure that the new dynamic action is selected in the Rendering tab. In the Dynamic
Action tab, enter the following values for the respective fields:
1) Identification > Name = Show email
2) When > Condition = is not null

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Select Show email > True > Show in the Rendering tab.

Oracle University and Error : You are not a Valid Partner use only
g. In the Action tab, enter the following values for the respective fields:
1) Identification > Action = Show
2) Affected Elements > Selection Type = Item(s)
3) Item(s) = <Select P7_CUST_EMAIL from Popup LOV>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

h. In the Rendering tab, right-click Show email > False and select Create FALSE
Action.

Oracle University and Error : You are not a Valid Partner use only
i. Ensure that Show email > False > Show is selected in the Rendering tab. In the
Action tab, enter the following values for the respective fields:
1) Identification > Action = Hide
2) Affected Elements > Selection Type = Item(s)
3) Item(s) = <Select P7_CUST_EMAIL from Popup LOV>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Click the Save and Run Page icon.

k. Notice that when you first run the page, the Cust Email is hidden. This is due to the
dynamic action you just created.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

l. Enter something in the Cust First Name item and when you click away from the item,
you notice that the Cust Email item is now shown.

Oracle University and Error : You are not a Valid Partner use only
m. Click the Edit Page 7 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

2. Changing the Class when an item Is Null: In the Customer Details page, add a class to
the P7_CUST_EMAIL if the item is null. Add an inline class to your page definition (located
in the /home/oracle/labs/labs/lab_19_01_01.txt file). The dynamic action should
fire when the item loses focus.
a. You first add the class to the dynamic action that you create. You add it to the page
definition. In the Rendering tab, select Page 7: Customer Details.

Oracle University and Error : You are not a Valid Partner use only
b. In the Page tab, scroll down to the CSS tab. Enter the following CSS code (located in
the /home/oracle/labs/labs/lab_19_01_01.txt file) in the Inline area. Note
that you need to make sure you specify the important style so that it overrides the other
styles used on the page.
.my-error {
border: 1px solid red !important;
}

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Now you create the dynamic action. In the Rendering tab, right-click P7_CUST_EMAIL
and select Create Dynamic Action.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Rendering tab, select the new dynamic action. In the Dynamic Action tab, enter
the following values for the respective fields:
1) Identification > Name = email is null
2) When > Event = Lose Focus
3) When > Selection Type = Item(s)
4) Item(s) = P7_CUST_EMAIL
5) When Condition = is null

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. In the Rendering tab, ensure that email is null > True > Show is selected.

Oracle University and Error : You are not a Valid Partner use only
f. In the Action tab, enter the following values for the respective fields:
1) Identification > Action = Add Class
2) Settings > Class = my-error
3) Affected Elements > Selection Type = Item(s)
4) Item(s) = <Select P7_CUST_EMAIL from Popup LOV>

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. In the Rendering tab, right click email is null > False and select Create FALSE
action.

Oracle University and Error : You are not a Valid Partner use only
h. In the Rendering tab, ensure that email is null > False > Show is selected. In the
Action tab, enter the following values for the respective fields:
1) Identification > Action = Remove Class
2) Affected Elements > Selection Type = Item(s)
3) Item(s) = <Select P7_CUST_EMAIL from Popup LOV>

i. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

j. Notice that now when you enter a Cust First Name, the Cust Email item is shown and it
turns red.

Oracle University and Error : You are not a Valid Partner use only
k. Enter an email address, and then click somewhere else on the page to lose focus. You
notice that the red border disappears.

l. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Refreshing the data in a report using Custom filters: In the Customers page, create a
Quick Filter region with two select list items P5_CUSTOMER_ID and P5_CITY_ID. Create
a dynamic action on the select lists to refresh the report when the values of the select list
change. Make sure you add the two filter items to the Page Items to Submit.
• P5_CUSTOMER_ID SQL Query: Located in the
/home/oracle/labs/labs/lab_19_01_02.txt
• P5_CITY_ID SQL Query: Located in the
/home/oracle/labs/labs/lab_19_01_03.txt

Oracle University and Error : You are not a Valid Partner use only
• Customer Report WHERE clause: Located in the
/home/oracle/labs/labs/lab_19_01_04.txt
a. In the GlobalMart Management Tool application home page, select the Customers
page.

b. Click the Save and Run Page icon.

c. You want to change the columns that the report displays. Click Actions and choose
Select Columns.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. Remove Photo and Customer Id from the list of Displayed Columns and add Cust
Email to the list of Displayed Columns. Then click Apply.

Oracle University and Error : You are not a Valid Partner use only
e. You want to save these settings. Click Actions and select Save Report.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Select As Default Report Settings from the list of Save options.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that Primary is selected and click Apply.

h. The report settings are saved. Click the Edit Page 5 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 22
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. You want to create the region in which the filtered items will be created. Drag Static
Content < / > region from the Regions gallery to above the Customer Report region
in the Grid Layout section of the page.

Oracle University and Error : You are not a Valid Partner use only
j. In the Rendering tab, ensure that the new region is selected. In the Region tab, enter
the Identification > Title as Quick Filter.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 23
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. In the Quick Filter region, you create two filter items: P5_CUSTOMER_ID and
P5_CITY_ID to filter the employee report by department name and job ID. Drag Select
List from Items Gallery to Items in the Quick Filter region in the Grid Layout section
of the page.

Oracle University and Error : You are not a Valid Partner use only
l. In the Rendering tab, ensure that the new item is selected. In the Page Item tab, enter
the following values for the respective fields:
1) Identification > Name = P5_CUSTOMER_ID
2) Label > Label = Customer
3) List of Values > Type = SQL Query
4) SQL Query = Enter the query which is provided in
/home/oracle/labs/labs/lab_19_01_02.txt
select cust_first_name||' '||cust_last_name d, customer_id r
from customers
order by 1

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 24
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

5) List of Values > Display Null Value = Yes


6) Null Display Value = - Show All –

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 25
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

m. You want to create one more page item for City. Drag Select List from Items Gallery
to Items in the Quick Filter region in the Grid Layout section of the page.

Oracle University and Error : You are not a Valid Partner use only
Note: Make sure that the new item is below the P5_CUSTOMER_ID item.
n. In the Rendering tab, ensure that the new item is selected. In the Page Item tab, enter
the following values for the respective fields:
1) Identification > Name = P5_CITY
2) Label > Label = City
3) Grid > Start New Row = No
4) Grid > New Column = Yes
5) List of Values > Type = SQL Query
6) SQL Query = Enter the query which is provided in
/home/oracle/labs/labs/lab_19_01_03.txt
select distinct city d, city r
from customers
order by 1

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 26
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

7) List of Values > Display Null Value = Yes


8) Null Display Value = - Show All –

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 27
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

o. In the Page Designer, select the Dynamic Actions tab.

Oracle University and Error : You are not a Valid Partner use only
p. Right-click Events and select Create Dynamic Action.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 28
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

q. In the Dynamic Actions tab, ensure the new dynamic action is selected. In the Dynamic
Action tab, enter the following values for the respective fields:
1) Identification > Name = Quick Filter Refresh
2) When > Event = Change
3) When > Selection Type = Item(s)
4) When > Item(s) = P5_CUSTOMER_ID, P5_CITY

Oracle University and Error : You are not a Valid Partner use only
r. In the Dynamic Actions tab, select Quick Filter Refresh > True > Show.

s. In the Action tab, enter the following values for the respective fields:
1) Identification > Action = Refresh
2) Affected Elements > Selection Type = Region
3) Affected Elements > Region = Customer Report

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 29
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

4) Execution Options > Fire On Page Load = No

Oracle University and Error : You are not a Valid Partner use only
t. In the Page Designer, select the Rendering tab.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 30
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

u. In the Rendering tab, select Regions > Content Body > Customer Report.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 31
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

v. In the Region tab, add the following WHERE clause (located in the
/home/oracle/labs/labs/lab_19_01_04.txt file) to the end of the SELECT
statement in the Source > SQL Query field. Then enter P5_CUSTOMER_ID,P5_CITY
for the Page Items to Submit field.
where customer_id = nvl(:P5_CUSTOMER_ID, CUSTOMER_ID)
and city = nvl(:P5_CITY, CITY)

Oracle University and Error : You are not a Valid Partner use only
w. Select Yes for Grid > Start New Row.

x. Click Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 32
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

y. Note that when both filters are set to - Show All -, all the records are displayed.

Oracle University and Error : You are not a Valid Partner use only
z. Select a customer from the list. What do you observe?

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 33
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

aa. Select -Show All- for Customer and select a city from the list. What do you observe
now?

Oracle University and Error : You are not a Valid Partner use only
bb. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 34
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 19-2: Importing and Using Plug-Ins on Your Page


Overview
In this solution, you import and use an item type plug-in and a dynamic action plug-in.

Steps
1. Add a rating column to the CUSTOMERS table.
a. Select SQL Workshop > Object Browser.

Oracle University and Error : You are not a Valid Partner use only
b. Make sure that OEHR is selected for Schema. Select CUSTOMERS from the list of
tables.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 35
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the CUSTOMERS section, click the Add Column button.

Oracle University and Error : You are not a Valid Partner use only
d. Enter RATING for Add Column, NUMBER for Type, and 2 for Precision.
Click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 36
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Click Finish.

Oracle University and Error : You are not a Valid Partner use only
f. The column is added. Click the Application Builder pull-down menu and select
Database Applications.

2. Import the Star Rating Item Plug-In and the Notification Dynamic action Plug-in files.
a. Click the GlobalMart Management Tool application icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 37
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Click Shared Components.

Oracle University and Error : You are not a Valid Partner use only
c. Under Other Components, select Plug-Ins.

d. Click Import >.

e. Click Browse and select


/home/oracle/labs/labs/item_type_plugin_com_oracle_apex_star_rat
ing.sql. Click Open. Then click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 38
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. After the file is imported, click Next > to install it.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that the GlobalMart Management Tool application is selected and click
Install Plug-in. Note that if the plug-in already exists, it will be replaced.

h. The plug-in is installed. You will be asked to enter a component setting. Click Apply
Changes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 39
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the Shared Components breadcrumb.

Oracle University and Error : You are not a Valid Partner use only
j. Under Other Components, select Plug-ins.

k. You want to install one more plug-in. Click Import >.

l. Click Browse and select


/home/oracle/labs/labs/dynamic_action_plugin_com_oracle_apex_gri
tter_notification.sql. Click Open. Then click Next >.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 40
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

m. After the file is imported, click Next > to install it.

Oracle University and Error : You are not a Valid Partner use only
n. Make sure that the GlobalMart Management Tool application is selected and click
Install Plug-in. Note that if the plug-in already exists, it will be replaced.

o. The plug-in is installed. Click the Application 1 breadcrumb.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 41
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Add the Star Rating Item Plug-in to your Customer Details page.
a. Navigate to the Customer Details page.

Oracle University and Error : You are not a Valid Partner use only
b. Drag Star Rating [Plug-In] from Items Gallery to after P7_PHONE_NUMBER in the
Grid Layout.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 42
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Rendering tab, make sure that the newly added plug-in is selected. In the Page
Item tab, enter the following values for the respective fields:
1) Identification > Name = P7_RATING
2) Settings > Number of Stars = 5
3) Source > Type = Database Column (the RATING column is automatically selected)

Oracle University and Error : You are not a Valid Partner use only
d. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 43
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Note that the page now includes the Rating item. If you move your cursor over the
circles, you can see the value. Switch window to the Page Designer page in the
browser.

Oracle University and Error : You are not a Valid Partner use only
4. Add the Notification Dynamic Action Plug-in to your Master Detail page.
a. Navigate to the Master Detail page. In the Page Finder field of the Page Designer,
enter 9 and click Go.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 44
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, right-click P9_ORDER_TOTAL and select Create Dynamic


Action.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 45
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Rendering tab, ensure that the new dynamic action is selected. In the Dynamic
Action tab, enter the following values for the respective fields:
1) Identification > Name = total notification
2) When > Event = Click
3) When > Selection Type = Item(s)
4) Item(s) = P9_ORDER_TOTAL

Oracle University and Error : You are not a Valid Partner use only
d. In the Rendering tab, ensure that email notification > True > Show is selected.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 46
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. In the Dynamic Action tab, enter the following values for the respective fields:
1) Identification > Action = Notification [Plug-in]
2) Settings > Title = Order Total
3) Settings > Text = The order total is &P9_ORDER_TOTAL.
4) Settings > Hide After x Seconds = 6

Oracle University and Error : You are not a Valid Partner use only
f. Click the Save button.

g. You want to show the total of an existing order. To do that, run the List of Orders page
and edit a record from there. Enter 8 (List of Orders page) in the Page Finder field and
click Go.

h. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 47
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click the Edit icon next to the first row.

Oracle University and Error : You are not a Valid Partner use only
j. Click the Order Total field. Notice the notification that is displayed.

k. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 19: Using Dynamic Actions and Plug-Ins


Chapter 19 - Page 48
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 20:
Utilizing Application Express
Printing
Chapter 20

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 20: Overview


Practices Overview
In these practices, you will print a standard report with derived output and create a PDF report
with multiple queries.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 20-1: Printing a Standard Report with Derived Output


Overview
In this practice, you enable printing of a custom report, creating an output format item, and then
deriving the printing of the report based on the item using a button.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. On the Top Tier Salary page, edit Print Attributes for the Top Tier Salary report region and
enable Report Printing. Run the page.
2. Change the report to be printed based on a derived format value. Create a select list item
and specify a static list of values on the item. Then create a button called Print to run the
report when an Output Format is selected.
3. Update the Print Attributes for the region to derive Output Format from the item. Create a
branch and add a condition for the application to know what to do when the Print button is
clicked.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.
If you haven’t completed Practice 14-2, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

k. Browse and upload the sol_14_02c.sql file in the


/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 19-2, perform the following steps:
a. Log in to the Application Express workspace as the apex user.

Oracle University and Error : You are not a Valid Partner use only
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_19_02.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 20-2: Creating a PDF Report with Multiple Queries


Overview
In this practice, you create a PDF report query that contains two queries and uses an existing
report layout. You then create a report that uses the report query you created and invoke it from
a button.

Assumptions

Oracle University and Error : You are not a Valid Partner use only
None

Tasks
This practice is a video walkthrough as the classroom machine doesn’t have BI Publisher, which
is required for creating a PDF report with multiple queries.
Watch the video by executing the lab_20_02.html file in the
/home/oracle/labs/labs/lab_20_02 directory. For better readability, view the video in
full screen.

Catch Up
There is no Catch Up for this practice.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 20-1: Printing a Standard Report with Derived Output


Overview
In this practice solution, steps are provided for printing a standard report with derived output for
the GMT application.

Steps
1. On the Top Tier Salary page, edit Print Attributes for the Top Tier Salary report region and

Oracle University and Error : You are not a Valid Partner use only
enable Report Printing. Run the page.
a. In the GlobalMart Management Tool application home page, click the Top Tier Salary
page (Page 3).

b. In the Rendering tab, select Regions > Content Body > Top Tier Salary >
Attributes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. In the Region tab, set the Printing > Enabled toggle to Yes.

Oracle University and Error : You are not a Valid Partner use only
d. In the Rendering tab, expand Attributes and select Printing.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. In the Printing tab, enter the value for Page Header > Text as Top Tier Salary.

Oracle University and Error : You are not a Valid Partner use only
f. Click the Save and Run Page icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. View the PDF report by using the Print Link at the bottom of the report.

Oracle University and Error : You are not a Valid Partner use only
h. Click OK.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. The PDF is displayed.

Oracle University and Error : You are not a Valid Partner use only
Close the PDF file.
2. Change the report to be printed based on a derived format value. Create a select list item
and specify a static list of values on the item. Then create a button called Print to run the
report when an Output Format is selected.
a. Click Edit Page 3 on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. In the Rendering tab, right-click Top Tier Salary under Regions > Content Body and
select Create Page Item.

Oracle University and Error : You are not a Valid Partner use only
c. In the Page Item tab, enter the following values for the respective fields:
1) Identification Title > Name = P3_OUTPUT_FORMAT
2) Identification > Type = Select List
3) List of Values > Type = Static Values
4) List of Values > Static Values = Specify the following list of values for the item (no
null values):
Display Value Return Value
PDF PDF
Word RTF
Excel XLS
HTML HTM
XML XML
Use the above table to enter values for Display Value and Return value, or enter
the following:
STATIC:PDF;PDF,Word;RTF,Excel;XLS,HTML;HTM,XML;XML

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

5) List of Values > Display Null Value = No

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Rendering tab, right-click Top Tier Salary under Regions > Content Body and
select Create Button.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. In the Rendering tab, ensure that the newly created button is selected. In the Button
tab, enter the following values for the respective fields:
1) Identification > Button Name = PRINT
2) Identification > Label = <Field is auto populated with value>
3) Layout > Button Position = Top of Region

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Update the Print Attributes for the region to derive Output Format from the item. Create a
branch and add a condition for the application to know what to do when the Print button is
clicked.
a. In the Rendering tab, select Printing under Regions > Content Body > Top Tier
Salary > Attributes.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Select Derive from Item for Output > Format and P3_OUTPUT_FORMAT for Output >
Format Item. Copy the Link > Link Example value to the clipboard.

Oracle University and Error : You are not a Valid Partner use only
c. In the Rendering tab, select the Processing icon.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

d. In the Processing tab, right-click Branches and select Create Branch.

Oracle University and Error : You are not a Valid Partner use only
e. In the Branch tab, click the No Link Defined button under Behavior > Target.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. Select the Top Tier Salary page number (Page 3) for Page. Click the Advanced tab
and paste the URL that you had copied in the Advanced > Request field. Alter the
URL by removing everything before the FLOW_XMLP_OUTPUT_R<n> value. Click OK.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 18
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

g. Select Processing for Execution Options > Point and PRINT for Condition > When
Button Pressed. Then click the Save and Run Page icon.

Oracle University and Error : You are not a Valid Partner use only
h. Select XML for Output Format and click Print.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 19
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

i. Click OK.

Oracle University and Error : You are not a Valid Partner use only
j. The XML is displayed. Close the window.

k. Click the Application 1 link on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 20
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 20-2: Creating a PDF Report with Multiple Queries


Overview
In this practice solution, steps are provided for creating a PDF report with multiple queries for
the GMT application.

Steps
The solution steps are provided in the video. For better readability, view the video in full screen.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 21
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 20: Utilizing Application Express Printing


Chapter 20 - Page 22
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.
Oracle University and Error : You are not a Valid Partner use only
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 21:
Managing Application
Feedback
Chapter 21

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 1
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practices for Lesson 21: Overview


Practices Overview
There is one practice in this lesson. In this practice, you will create a feedback form in your
application, submit feedback, and review and categorize the feedback.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 2
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Practice 21-1: Adding and Monitoring Feedback in Your Application


Overview
In this practice, you create a feedback form in your application, submit feedback, and review
and categorize the feedback.

Assumptions
You have completed the previous practices.

Oracle University and Error : You are not a Valid Partner use only
Note: If you haven’t completed the previous practices, execute the steps mentioned in the
Catch Up section of this practice.

Tasks
1. Create a feedback form for your GMT application.
2. Create the following feedback from your application:
Feedback # Feedback Text Feedback Type
1. Date format needs to be changed on Master detail General Comment
2. Error when deleting a line item on an order Bug
3. Add label help text on Orders page General Comment
3. Review your feedback in Team Development.
4. Log feedback 1 (“Date format needs to be changed on Master detail”) as a feature with a
status of “Functionally complete - 80%.”
5. Log feedback 3 (Add label help text on Orders page) as a To Do, assign it to Tom, and
change the status to “Assigned - 30%.” Delete the feedback entry after logging it as a To
Do.
6. Edit the To Do, changing the status to “Work Progressing - 80%” and specifying
Documentation for the category.
7. Log feedback 2 (“Error when deleting a line item on an order”) as a bug. Set the severity to
“4. Moderate Impact” and assign it to Tom.
8. Edit the bug and change the status to “80. Fixed in development,” and set the priority to “1.
As soon as possible.”
9. Review the Team Development dashboard.

Catch Up
If you haven’t completed Practice 2-1, perform the following steps:
a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_02_01.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.
g. Make sure that the script executed successfully and the apex user is created.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 3
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

If you haven’t completed Practice 14-2, perform the following steps:


a. Log in to the Application Express workspace as the apex_admin user.
b. Click the arrow next to SQL Workshop and select SQL Scripts.
c. Click the Upload > button.
d. Browse and upload the sol_14_02b.sql file in the
/home/oracle/labs/solutions directory.
e. Run the script by clicking the Run icon.
f. Click Run Now.

Oracle University and Error : You are not a Valid Partner use only
g. Make sure that the script executed successfully and three users (brad.knight,
susie.parker, and john.bell) are created.
h. Log in to the Application Express workspace as the apex user.
i. Click the arrow next to SQL Workshop and select SQL Scripts.
j. Click the Upload > button.
k. Browse and upload the sol_14_02c.sql file in the
/home/oracle/labs/solutions directory.
l. Run the script by clicking the Run icon.
m. Click Run Now.
n. Make sure that the script executed successfully and the tables
(APEX_ACCESS_CONTROL and APEX_ACCESS_SETUP) are created with data in it.
If you haven’t completed Practice 20-1, perform the following steps:
a. Log in to the Application Express workspace as the apex user.
b. Click the arrow next to Application Builder and select Import.
c. Click the Browse button.
d. Browse and open the sol_20_01.sql file in the /home/oracle/labs/solutions
directory and click Next >.
e. Click Next >.
f. Select Reuse Application ID 1 From Export File for the Install As Application
option and click Install Application.
g. Click Replace Application (if prompted).
h. Make sure that Yes is selected for the Install Supporting Objects option and click
Next >.
i. Click Install.
j. Verify that the application and the supporting objects are successfully installed.
Note: To catch up with Practice 21-1, perform the steps mentioned in the Catch Up section of
this practice but instead of importing sol_20_01.sql file, upload the sol_21_01.sql file.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 4
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Solution 21-1: Adding and Monitoring Feedback in Your Application


Overview
In this practice solution, steps are provided for adding and monitoring feedback in the GMT
application.

Steps
1. Create a feedback form for your GMT application.

Oracle University and Error : You are not a Valid Partner use only
a. In the GlobalMart Management Tool application home page, click Create Page >.

b. Select Feedback Page.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 5
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Accept the default values and click Create.


Note: When you create the feedback page, you will notice that the navigation bar will
have an entry for feedback and the application feedback will be automatically enabled.

Oracle University and Error : You are not a Valid Partner use only
d. Click the Application 1 breadcrumb.

e. Click Run Application.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 6
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

f. If you receive the login window, enter your login credentials and click Log In. If you do
not receive the login window, click Sign Off and log in again.

Oracle University and Error : You are not a Valid Partner use only
2. Create the following feedback from your application:
Feedback # Feedback Text Feedback Type
1. Date format needs to be changed on Master detail General Comment
2. Error when deleting a line item on an order Bug
3. Add label help text on Orders page General Comment
a. Click Feedback on the navigation bar.

b. Enter Date format needs to be changed on Master detail in the


Feedback field and click Submit Feedback.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 7
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. You want to create another feedback item. Click Feedback in the navigation bar.

d. Enter Error when deleting a line item on an order in the Feedback text
area and select Bug for Feedback Type. Click Submit Feedback.

Oracle University and Error : You are not a Valid Partner use only
e. You want to create one more feedback item. Click Feedback in the navigation bar.

f. Enter Add label help text on Orders page in the Feedback text area and
click Submit Feedback.

g. You have entered all your feedback. Now you want to view it in Team Development.
Click Home on the Developer toolbar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 8
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

3. Review your feedback in Team Development.


a. Click the arrow next to the Team Development pull-down menu and select Feedback.

Oracle University and Error : You are not a Valid Partner use only
b. The Feedback dashboard is displayed. Notice that feedback items have been filed.
Click the Feedback Entries link.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 9
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

4. Log feedback 1 (“Date format needs to be changed on Master detail”) as a feature with a
status of “Functionally complete - 80%.”
a. Click the Feedback Number 1 link to edit it.

Oracle University and Error : You are not a Valid Partner use only
b. Your feedback is displayed. Click the Log as Feature button.

c. Specify the following and click Create Feature:


1) Feature Name = Date format needs to be changed on Master detail
2) New Release = 6.0
3) New Assignee = John
4) Start Date = <Select tomorrow’s date>
5) Due Date = <Select date one month from now>
6) Desirability = 3. Desirable

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 10
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

7) Development Priority = 3. Normal Priority


8) Feature Status = Functionally complete - 80%

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 11
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Oracle University and Error : You are not a Valid Partner use only
d. Click Apply Changes.

5. Log feedback 3 (“Add label help text on Orders page”) as a To Do, assign it to Tom, and
change the status to “Assigned - 30%.” Delete the feedback entry after logging it as a “To
Do”.
a. Click the Feedback Number 3 link to edit it.

b. You want to make Feedback 3 a To Do. Click the Log as To do button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 12
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

c. Specify the following and click Create To do:


1) Release = 6.0
2) New Assignee = Tom
3) To do status = Assigned - 30%
4) Delete feedback entry = <Select this check box>

Oracle University and Error : You are not a Valid Partner use only
6. Edit the To Do, changing the status to “Work Progressing - 80%” and specifying
Documentation for the category.
a. Click the arrow next to the Team Development pull-down menu and select To Dos.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 13
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Click Report.

Oracle University and Error : You are not a Valid Partner use only
c. Click the Add label help text on Orders page link.

d. Change the To Do > Status to Work Progressing - 80%, enter Documentation for
Details > New Category, and click Apply Changes.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 14
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

7. Log feedback 2 (“Error when deleting a line item on an order”) as a bug. Set the severity to
“4. Moderate Impact” and assign it to Tom.
a. Click the arrow next to the Team Development pull-down menu and select Feedback.

Oracle University and Error : You are not a Valid Partner use only
b. Click the Feedback Entries link.

c. Click the Feedback Number 2 link to edit it.

d. Feedback 2 is a bug. Click the Log as Bug button.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 15
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

e. Specify the following and click Create Bug.


1) Severity = 4. Moderate Impact
2) Release = 6.0
3) Assign To = tom

Oracle University and Error : You are not a Valid Partner use only
8. Edit the bug and change the status to “80. Fixed in development,” and set the priority to “1.
As soon as possible.”
a. Click the arrow next to the Team Development pull-down menu and select Bugs.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 16
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. Click Report.

c. Click the Error when deleting a line item on an order link.

Oracle University and Error : You are not a Valid Partner use only
d. Select 80. Fixed in development for Bug > Status and 1. As soon as possible for
Bug > Priority. Click Apply Changes.

9. Review the Team Development dashboard.


a. Click Team Development in the navigation bar.

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 17
THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

b. An overview of all your features, milestones, to dos, and bugs are displayed.

Oracle University and Error : You are not a Valid Partner use only

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.

Practices for Lesson 21: Managing Application Feedback


Chapter 21 - Page 18

You might also like