Professional Documents
Culture Documents
D17251GC10
Edition 1.0
June 2004
D39560
Author
Pam Gamer
Technical Contributors
and Reviewers
Alena Bugarova
Purjanti Chang
Laurent Dereac
Punita Handa
Mark Pare
Jasmin Robayo
Bryan Roberts
Divya Sandeep
Raza Siddiqui
John Soltani
Lex van der Werff
Editors
The information in this document is subject to change without notice. If you find any
problems in the documentation, please report them in writing to Education Products,
Oracle Corporation, 500 Oracle Parkway, Redwood Shores, CA 94065. Oracle
Corporation does not warrant that this document is error-free.
Nishima Sachdeva
Elizabeth Treacy
Oracle and all references to Oracle Products are trademarks or registered trademarks
of Oracle Corporation.
Publisher
All other products or company names are used for identification purposes only, and
may be trademarks of their respective owners.
Giri Venugopal
Contents
Preface
I
Introduction
Objectives I-2
Course Objectives I-3
Course Content I-5
iv
vi
Creating an LOV with the LOV Wizard: SQL Query Page 8-9
Creating an LOV with the LOV Wizard: Column Selection Page 8-10
Creating an LOV with the LOV Wizard: Column Properties Page 8-11
Creating an LOV with the LOV Wizard: Display Page 8-12
Creating an LOV with the LOV Wizard: Advanced Properties Page 8-13
Creating an LOV with the LOV Wizard: Assign to Item Page 8-14
LOV Properties 8-15
Setting LOV Properties 8-16
LOVs: Column Mapping 8-17
Defining an Editor 8-19
Setting Editor Properties 8-20
Associating an Editor with a Text Item 8-21
Summary 8-22
Practice 8 Overview 8-23
9
Summary 11-16
Practice 11 Overview 11-17
12 Working with Other Canvas Types
Objectives 12-2
Overview of Canvas Types 12-3
The Stacked Canvas 12-4
Creating a Stacked Canvas 12-6
Setting Stacked Canvas Properties 12-8
The Toolbar Canvas 12-9
The MDI Toolbar 12-10
Creating a Toolbar Canvas 12-11
Setting Toolbar Properties 12-12
The Tab Canvas 12-13
Creating a Tab Canvas 12-14
Creating a Tab Canvas in the Object Navigator 12-15
Creating a Tab Canvas in the Layout Editor 12-16
Setting Tab Canvas, Tab Page, and Item Properties 12-17
Placing Items on a Tab Canvas 12-18
Summary 12-19
Practice 12 Overview 12-21
13 Introduction to Triggers
Objectives 13-2
Trigger Overview 13-3
Grouping Triggers into Categories 13-4
Defining Trigger Components 13-6
Trigger Type 13-7
Trigger Code 13-9
Trigger Scope 13-10
Specifying Execution Hierarchy 13-12
Summary 13-14
14 Producing Triggers
Objectives 14-2
Creating Triggers in Forms Builder 14-3
Creating a Trigger 14-4
Setting Trigger Properties 14-7
PL/SQL Editor Features 14-8
The Database Trigger Editor 14-10
Writing Trigger Code 14-11
ix
xi
Summary 18-25
Practice 18 Overview 18-27
19 Validation
Objectives 19-2
The Validation Process 19-3
Controlling Validation Using Properties: Validation Unit 19-5
Controlling Validation Using Properties: Validate from List 19-7
Controlling Validation Using Triggers 19-9
Example: Validating User Input 19-11
Using Client-Side Validation 19-13
Tracking Validation Status 19-16
Controlling When Validation Occurs with Built-Ins 19-18
Summary 19-20
Practice 19 Overview 19-22
20 Navigation
Objectives 20-2
Navigation Overview 20-3
Understanding Internal Navigation 20-5
Using Object Properties to Control Navigation 20-7
Mouse Navigate Property 20-9
Writing Navigation Triggers 20-10
Navigation Triggers 20-11
When-New-<object>-Instance Triggers 20-12
SET_<object>_PROPERTY Examples 20-13
The Pre- and Post-Triggers 20-15
Post-Block Trigger Example 20-17
The Navigation Trap 20-18
Using Navigation Built-Ins in Triggers 20-19
Summary 20-21
Practice 20 Overview 20-23
21 Transaction Processing
Objectives 21-2
Transaction Processing Overview 21-3
The Commit Sequence of Events 21-6
Characteristics of Commit Triggers 21-8
Common Uses for Commit Triggers 21-10
Life of an Update 21-12
Delete Validation 21-14
xii
xiii
xv
Preface
Preface - 2
Profile
Before you begin this course
Before you begin this course, you should be able to:
Create PL/SQL constructs, including conditional statements, loops, procedures and functions.
Prerequisites
Either
And either
PL/SQL: Basics
Or both:
Suggested prerequisites
Oracle Database 10g: SQL Fundamentals II (InClass) (if you attended the Oracle Database 10g:
SQL Fundamentals I (InClass))
Preface - 3
Related Publications
Oracle publications
Title
Part Number
A73154-01
A73073-02
B10470-01
Additional publications
Release notes: <ORACLE_HOME\doc\welcome\release_notes\chap_forms.htm
Preface - 4
Typographic Conventions
Typographic conventions in text
Convention
Bold italic
Element
Glossary term (if there is
a glossary)
Example
The algorithm inserts the new key.
Caps and
lowercase
Buttons,
check boxes,
triggers,
windows
Courier new,
case sensitive
(default is
lowercase)
Code output,
directory names,
filenames,
passwords,
pathnames,
URLs,
user input,
usernames
Initial cap
Graphics labels
(unless the term is a
proper noun)
Italic
Quotation
marks
Uppercase
Preface - 5
Convention
Element
Example
Right arrow
Menu paths
Brackets
Key names
Press [Enter].
Commas
Key sequences
Plus signs
Key combinations
Convention
Element
Example
Caps and
lowercase
Oracle Forms
triggers
When-Validate-Item
Lowercase
Column names,
table names
SELECT last_name
FROM s_emp;
Passwords
PL/SQL objects
OG_ACTIVATE_LAYER
(OG_GET_LAYER (prod_pie_layer))
Lowercase italic
Syntax variables
Uppercase
SQL commands
and functions
SELECT userid
FROM emp;
Preface - 6
Introduction
Schedule:
Timing
15 minutes
15 minutes
Topic
Lecture
Total
Objectives
I-2
Introduction
Overview
This lesson introduces you to the Oracle Forms Developer 10g: Build Internet
Applications course:
The objectives that the course intends to meet
The topics that it covers
How the topics are structured over the duration of the course
Course Objectives
I-3
Course Objectives
Course Description
In this course, you will learn to build, test, and deploy interactive Internet applications.
Working in a graphical user interface (GUI) environment, you will learn how to create
and customize forms with user input items such as check boxes, list items, and radio
groups. You will also learn how to modify data access by creating event-related triggers,
and you will display Forms elements and data in multiple canvases and windows.
Course Objectives
I-4
Enhance functionality
Communicate with users
Supplement validation
Control navigation
Modify default transaction processing
Control user interaction
Course Content
Day 1
Lesson 1: Introduction to Oracle Forms Developer
and Oracle Forms Services
Lesson 2: Running a Forms Builder Application
Lesson 3: Working in the Forms Developer
Environment
Lesson 4: Creating a Basic Form Module
Lesson 5: Creating a Master-Detail Form
Lesson 6: Working with Data Blocks and Frames
I-5
Course Content
The lesson titles show the topics that is covered in this course, and the usual sequence of
lessons. However, the daily schedule is an estimate, and may vary for each class.
Course Content
Day 2
Lesson 7: Working with Text Items
Lesson 8: Creating LOVs and Editors
Lesson 9: Creating Additional Input Items
Lesson 10: Creating Noninput Items
I-6
Course Content
Day 3
Lesson 11: Creating Windows and Content
Canvases
Lesson 12: Working with Other Canvas Types
Lesson 13: Introduction to Triggers
Lesson 14: Producing Triggers
Lesson 15: Debugging Triggers
I-7
Course Content
Day 4
Lesson 16: Adding Functionality to Items
Lesson 17: Run-time Messages and Alerts
Lesson 18: Query Triggers
Lesson 19: Validation
Lesson 20: Navigation
I-8
Course Content
Day 5
Lesson 21: Transaction Processing
Lesson 22: Writing Flexible Code
Lesson 23: Sharing Objects and Code
Lesson 24: Using WebUtil to Interact with the
Client
Lesson 25: Introducing Multiple Form Applications
I-9
Schedule:
Timing
30 minutes
30 minutes
Topic
Lecture
Total
Objectives
1-2
Introduction
Overview
This course teaches you how to build effective and professional form applications using Oracle
Forms Developer.
This lesson identifies the key features of Oracle Application Server 10g, Oracle Developer Suite
10g, Oracle Forms Services, Oracle Forms Developer, and the course application model and
contents.
There are many terms used in this course that may be unfamiliar to you. For a glossary
containing definitions of many of these terms, see http://www.oracle.com/glossary.
1-3
Application Type
and Audience
Product
Approach
Oracle
Products
Enterprise applications,
Business developers
Repository-based
modeling & generation,
Declarative
Oracle Designer,
Oracle Forms Developer,
& Oracle Forms Services
Java components,
Component developers
Two-way coding,
Java and JavaBeans
Oracle JDeveloper
Oracle Application Server 10g
Browser-based,
Dynamic HTML
Oracle Portal
Oracle Database Server
Reporting and
analytical applications,
MIS & business users
Dynamic Web
reporting, Drill,
Analyzing, Forecasting
1-4
1-5