D79653GC20 Ag2
D79653GC20 Ag2
D79653GC20 Ag2
D79653GC20
Workshop I
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
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:
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
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
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 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 University and Error : You are not a Valid Partner use only
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.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 12:
Adding Shared Components
that Aid Navigation
Chapter 12
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
Oracle University and Error : You are not a Valid Partner use only
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
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
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.
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
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.
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
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.
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
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.
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
Oracle University and Error : You are not a Valid Partner use only
e. For Name, enter Home Page List and click Next >.
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.
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
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.
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
c. Click Create >.
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.
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 >.
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.
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
q. Change the Common > Default State to Collapsed and click OK.
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
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.
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
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.
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.
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.
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
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.
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
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.
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.
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 >.
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.
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
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.
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.
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.
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.
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.
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
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
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.
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
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.
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.
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
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 >.
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
Oracle University and Error : You are not a Valid Partner use only
c. Click the Create List Entry button.
e. Note that the Home link is displayed at the top of the page. Click the Home tab.
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.
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
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.
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
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.
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
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.
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.
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
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
g. Click the Breadcrumb icon.
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.
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
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
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
Oracle University and Error : You are not a Valid Partner use only
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
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.
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
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.
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
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.
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
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.
c. Notice that there are two existing themes currently in the list. To create a new theme,
click the Create > button.
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.
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.
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
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.
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.
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.
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.
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
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.
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.
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.
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
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.
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
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.
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
Oracle University and Error : You are not a Valid Partner use only
d. Click the Application 1 link on the Developer toolbar.
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
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
Oracle University and Error : You are not a Valid Partner use only
d. Click the Administration icon and select Manage Users and Groups.
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.
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.
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>
Oracle University and Error : You are not a Valid Partner use only
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.
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.
c.
d.
Click Create Page >.
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 >.
g. Click Create.
Oracle University and Error : You are not a Valid Partner use only
h. Click the Save and Run Page icon.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
d. Click the Save and Run Page icon.
e. Click Commission.
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.
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.
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)
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.
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.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 15:
Managing Application
Navigation
Chapter 15
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
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.
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:
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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 -
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.
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.
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
c.
b.
Select Report.
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 >.
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 >.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
e. In the Rendering tab, select the NAME column.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
c. The Customer Details page is displayed for the customer.
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.
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
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.
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 >.
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.
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.
l.
Select Report.
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 >.
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
Oracle University and Error : You are not a Valid Partner use only
r. Click Create.
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.
Oracle University and Error : You are not a Valid Partner use only
d. In the Column tab, select Identification > Type as Hidden Column.
Oracle University and Error : You are not a Valid Partner use only
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
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.
Oracle University and Error : You are not a Valid Partner use only
c. Click Desktop Navigation Bar.
e. Enter Site Map for List Entry Label. Select your Site Map page number for Page
(Page 17) and click Create List Entry.
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.
5. Run the page and click one of the page names to view the corresponding page.
a. Click the Run Page icon.
Oracle University and Error : You are not a Valid Partner use only
c. Click the Application 1 link on the Developer toolbar.
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.
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.
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'
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.
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.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 16:
Extending Your Application
Chapter 16
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
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.
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 >.
Oracle University and Error : You are not a Valid Partner use only
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
e.
The rule is added. Click Next >.
Oracle University and Error : You are not a Valid Partner use only
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 >.
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.
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.
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 >.
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.
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.
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.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
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.
Oracle University and Error : You are not a Valid Partner use only
d. Select the Blank Page page type.
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 >.
g.
Click Finish.
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.
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
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.
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.
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.
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>
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.
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.
f. The report is displayed with a link (pencil icon) to download the file. Click the
Application 1 link on the Developer toolbar.
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.
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.
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.
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.
d.
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.
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.
i.
Edit the first row again.
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.
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.
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
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.
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.
g. Click OK.
Oracle University and Error : You are not a Valid Partner use only
h. Select Regions > Customer Report > Columns > PHOTO.
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.
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.
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;
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.
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
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.
Oracle University and Error : You are not a Valid Partner use only
d. Select Large for Size and click OK.
Oracle University and Error : You are not a Valid Partner use only
f. Click the Processing tab.
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;
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.
Oracle University and Error : You are not a Valid Partner use only
l. Edit the first row (the row with the image).
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.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 17:
Creating and Editing Charts
Chapter 17
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
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.
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 >.
b.
Select Chart.
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
d. Make sure that 3D Bar Chart is selected and click Next >.
Oracle University and Error : You are not a Valid Partner use only
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 >.
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
Oracle University and Error : You are not a Valid Partner use only
where e.department_id = d.department_id
group by department_name
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.
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.
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
c.
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
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 >.
Oracle University and Error : You are not a Valid Partner use only
Oracle University and Error : You are not a Valid Partner use only
d. Select 3D Pie.
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 >.
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
i.
Click Create.
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.
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.
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.
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.
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.
c.
Select Chart as page type.
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
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 >.
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 >.
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
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.
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.
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 >.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
c. Select Chart as page type.
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.
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 >.
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
j.
Click Create.
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.
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
Oracle University and Error : You are not a Valid Partner use only
b. Select Chart as page type.
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 >.
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 >.
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
i.
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
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
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 18:
Adding Calendars and Trees
Chapter 18
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
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.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
d. Ensure that Calendar is selected and click Next >.
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 >.
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 >.
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
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
k.
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.
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.
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.
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.
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.
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 >.
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 >.
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
i.
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.
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.
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
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
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
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.
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 >.
b.
Select the Tree option.
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 >.
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)
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 >.
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.
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.
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)
Oracle University and Error : You are not a Valid Partner use only
f. Click the Employee hierarchy button.
g.
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
Oracle University and Error : You are not a Valid Partner use only
i. Click the Application 1 link on the Developer toolbar.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 19:
Using Dynamic Actions and
Plug-Ins
Chapter 19
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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).
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.
Oracle University and Error : You are not a Valid Partner use only
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
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>
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>
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
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.
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;
}
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
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
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>
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>
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.
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.
c. You want to change the columns that the report displays. Click Actions and choose
Select Columns.
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.
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
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
Oracle University and Error : You are not a Valid Partner use only
Oracle University and Error : You are not a Valid Partner use only
p. Right-click Events and select Create Dynamic Action.
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
Oracle University and Error : You are not a Valid Partner use only
t. In the Page Designer, select the Rendering tab.
u. In the Rendering tab, select Regions > Content Body > Customer Report.
Oracle University and Error : You are not a Valid Partner use only
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.
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?
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.
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.
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 >.
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.
Oracle University and Error : You are not a Valid Partner use only
c. Under Other Components, select Plug-Ins.
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.
Oracle University and Error : You are not a Valid Partner use only
j. Under Other Components, select Plug-ins.
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.
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.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
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.
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.
Oracle University and Error : You are not a Valid Partner use only
j. Click the Order Total field. Notice the notification that is displayed.
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 20:
Utilizing Application Express
Printing
Chapter 20
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
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.
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.
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.
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
Oracle University and Error : You are not a Valid Partner use only
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
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
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
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.
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.
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
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.
i. Click OK.
Oracle University and Error : You are not a Valid Partner use only
j. The XML is displayed. Close the window.
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
Oracle University and Error : You are not a Valid Partner use only
Practices for Lesson 21:
Managing Application
Feedback
Chapter 21
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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 >.
Oracle University and Error : You are not a Valid Partner use only
d. Click the Application 1 breadcrumb.
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.
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.
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.
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.
Oracle University and Error : You are not a Valid Partner use only
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.
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.
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.
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.
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.
b. Click Report.
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.
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