You are on page 1of 6

Enhancing Your Oracle Application

Express Application

Student Guide
M105027GC10

Learn more from Oracle University at education.oracle.com


Copyright © 2020, Oracle and/or its affiliates.

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 and is not warranted to be error-free. If you find any
errors, please report them to us in writing.

Restricted Rights Notice

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

U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs
embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation
or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or "commercial
computer software documentation" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works,
and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or
activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle
data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the
U.S. Government's use of Oracle cloud services are defined by the applicable contract for such services. No other rights are
granted to the U.S. Government.

Trademark Notice

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

Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license
and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or
registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.

Third-Party Content, Products, and Services Disclaimer

This documentation may provide access to or information about content, products, and services from third parties. Oracle
Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party
content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation
and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.

1010012020
Contents

1 Course Overview
Roadmap 1-2
Topics 1-3
Course Environment 1-4
Workspace Details 1-5
Accessing the labs Directory 1-6
Introducing Course Persona: Steve 1-7
Introducing Course Persona: Stella 1-8
Introducing Course Persona: Richard 1-9
Demo Application: Project Tracking System 1-10
Practice Application: GlobalMart Management Tool 1-11

2 Introduction and Review


Roadmap 2-2
Learning Objectives 2-3
Steve Reviews Oracle Application Express Concepts and PTS Features 2-4
What Is Oracle Application Express? 2-5
Workspace Home Page 2-6
What Is App Builder? The First Component of Oracle Application Express 2-7
What Is SQL Workshop? The Second Component of Oracle
Application Express 2-8
Accessing SQL Workshop 2-9
Running SQL Commands 2-10
What Is Team Development? The Third Component of Oracle
Application Express 2-11
What Is App Gallery? The Fourth Component of Oracle Application Express 2-12
Accessing the App Gallery 2-13
What Is a Workspace? 2-14
Defining Roles 2-15
Building Your Database Application 2-17
Components of an Application Page 2-19
Page Designer: The Advanced Web-Based IDE 2-20
Page Designer: Drag and Drop from Gallery 2-21
Page Definition: Overview 2-22
Different Views of a Page 2-23

iii
Oracle Application Express: Other Features 2-24
Securing Database Applications 2-25
Additional Resources: Application Express OTN Page 2-26
Oracle Learning Library 2-27
Additional Resources: Documentation and Tutorials 2-28
Oracle Application Express Developer Certified Expert 2-29
Practice 2: Overview 2-30
Summary 2-31

3 Using Oracle Application Express Collections


Road Map 3-2
Learning Objectives 3-3
Topics 3-4
Using Collections in PTS 3-5
Challenge in Storing Session Data 3-6
What Is a Collection? 3-7
Advantages of Using Collections 3-8
Common Use Cases of Collections 3-9
Status Report for Team Members 3-11
Quiz 3-13
Topics 3-14
Overview of APEX_COLLECTION API 3-15
Collection Structure and Data Types 3-16
APIs to Create a Collection 3-17
Creating a Collection: Syntax and Example 3-21
Adding Members to a Collection 3-22
APIs to Add Members to a Collection: Syntax and Example 3-23
Example: Adding Members to a Collection 3-24
Example: Creating and Adding Members to a Collection 3-26
Topics 3-28
Viewing a Collection in Session State 3-29
Accessing a Collection: Syntax and Example 3-30
Updating Members of a Collection 3-31
Updating Members: Syntax and Example 3-32
Updating Member Attributes of a Collection 3-33
Updating Member Attributes: Syntax and Example 3-34
Other APIs to Work with Collections 3-35
Quiz 3-36
Practice 3: Using Oracle Application Express Collections 3-37
Summary 3-38

iv
4 Using Dynamic Actions
Road Map 4-2
Creating Dynamic Actions in PTS 4-3
Learning Objectives 4-4
Topics 4-5
Review: What Is a Dynamic Action? 4-6
Review: Basic Dynamic Actions 4-7
Components of Dynamic Actions 4-8
Dynamic Actions: Events - “When” section 4-9
Dynamic Actions: Events - “Advanced” and other sections 4-10
Dynamic Actions: Actions 4-11
Quiz 4-12
Topics 4-13
Creating a Dynamic Action 4-14
Creating Dynamic Action on a Button 4-15
Deleting a Row in a Report 4-17
Processing a Modal Window 4-21
Topics 4-22
Creating Custom Events 4-23
Additional Resource: Sample Packaged Application 4-25
Practice 4 Overview: Using Dynamic Actions 4-26
Summary 4-27

5 Incorporating Interactivity in Your Application


Road Map 5-2
Learning Objectives 5-3
Topics 5-4
Using JavaScript, jQuery, and Interactive Grid in PTS 5-5
JavaScript, jQuery and AJAX: Overview 5-6
Topics 5-7
Using JavaScript 5-8
Using JavaScript Functionalities in Oracle Application Express 5-9
Using JavaScript APIs 5-10
Topics 5-12
Using AJAX 5-13
When to use AJAX 5-14
Topics 5-15
Advanced Delete in Interactive Grid 5-16
Using Advanced Delete 5-17
Client Validation in Interactive Grid 5-19

v
Using Client Validation 5-20
Practice 6 Overview: Incorporating Interactivity Using JavaScript, jQuery,
Advanced Delete, and Client Validation 5-22
Summary 5-23

6 Sending Email from an Application


Road Map 6-2
Learning Objectives 6-3
Topics 6-4
Email Functionality in Oracle Application Express 6-5
Email Implementation in an Application 6-6
Use PL/SQL Code to Send Email 6-8
Sample PL/SQL Code to Send Email 6-9
Sample PL/SQL Example to Send Email 6-10
Use Send E-Mail Process to Send Email 6-12
Define and Use Email Templates 6-13
Topics 6-14
Define Email Template 6-15
Send Template-based Email from an Application 6-17
Send Template-Based Email from SQL Workshop 6-21
Topics 6-22
Add Attachments in an Email 6-23
Quiz 6-24
Practice: Overview 6-27
Summary 6-28

vi

You might also like