Tải bản đầy đủ (.pdf) (7 trang)

a0107 oracle forms interactive workboo morebook vn 8336

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (108.26 KB, 7 trang )

Oracle Forms
®
®

INTERACTIVE WORKBOOK


BOOKS IN
THIS SERIES
• Baman Motivala
“Oracle Forms Interactive Workbook”
0-13-015808-9
• Benjamin Rosenzweig & Elena Silvestrova
“Oracle PL/SQL”
0-13-015743-0
• Alex Morrison & Alice Rischert
“Oracle SQL Interactive Workbook”
0-13-015745-7


Oracle
Forms
®

®

INTERACTIVE WORKBOOK

BAMAN MOTIVALA

Prentice Hall PTR


Upper Saddle River, New Jersey 07458
www.phptr.com


CONTENTS
Introduction
Acknowledgments
About the Author

xi
xvii
xix

Chapter 1 Concepts and Objects
LAB 1.1 Oracle Forms Concepts
1.1.1 Explain How Oracle Forms Works
LAB 1.2 Mandatory Forms Objects
1.2.1 Identify Items and Their Types
1.2.2 Identify Canvases and Frames
1.2.3 Define Base-table Blocks
1.2.4 Understand Modules
1.2.5 Relate the Mandatory Forms Elements
CHAPTER 1 Test Your Thinking

Chapter 2 Wizards and Files
LAB 2.1 The Data Block and Layout Wizards
2.1.1 Use the Data Block and Layout Wizards
2.1.2 Reentering the Wizards
LAB 2.2 Oracle Forms Files
2.2.1 Differentiate Between Source

and Executable Files
2.2.2 Compile Binary Files into Executable Files
2.2.3 Run Executable Files
CHAPTER 2 Test Your Thinking

Chapter 3 The Development Environment
LAB 3.1 The Object Navigator
3.1.1 Open and Identify Objects
3.1.2 Create and Delete objects
3.1.3 Drag & Drop and Cut & Paste Objects
3.1.4 Run and Save Forms
3.1.5 View Database Objects

1
2
4
11
17
18
19
20
20
30

31
32
42
43
53
54

55
57
63

65
66
68
69
70
72
72

vii


viii

Contents

LAB 3.2 The Property Palette
3.2.1 View Properties
3.2.2 Change Properties
LAB 3.3 The Layout Editor
3.3.1 Create and Format Objects
3.3.2 Arrange and Size Objects
CHAPTER 3 Test Your Thinking

Chapter 4 Master-Detail Forms
LAB 4.1 Master-Detail Forms
4.1.1 Create a Master-Detail Form

4.1.2 Work with Master-Detail Forms
and Relations
CHAPTER 4 Test Your Thinking

Chapter 5 Items
LAB 5.1 Text Items and Display Items
5.1.1 Create and Define Text Items Without
the Wizard
5.1.2 Create and Define Display Items
LAB 5.2 Buttons, List Items, Radio Groups,
and Check Boxes
5.2.1 Create Buttons
5.2.2 Put Simple Code Behind Buttons
5.2.3 Create List Items
5.2.4 Create Radio Groups
5.2.5 Create Check Boxes
CHAPTER 5 Test Your Thinking

Chapter 6 Triggers & Built-ins
LAB 6.1 Trigger Basics
6.1.1 Use PL/SQL and SQL in Triggers
6.1.2 Understand Trigger Scope
6.1.3 Categorize Triggers
LAB 6.2 Creating Triggers of Various Types
6.2.1 Create Query Triggers
6.2.2 Create Validation Triggers
6.2.3 CreateTransactional Triggers
6.2.4 Create Key Triggers
LAB 6.3 Forms Built-ins
6.3.1 Use Forms Built-ins

CHAPTER 6 Test Your Thinking

84
86
86
93
95
97
105

107
108
110
112
124

125
126
127
131
143
147
148
150
153
155
169

171
172

175
176
178
187
189
192
195
197
213
216
223


466

Index

Query Array Size property, 140–41
QUERY_MASTER_DETAIL trigger, 26,
119–20
Query triggers, 175, 187–88
creating, 189–92
R
Radio Button node, 163
Radio groups, 3, 22, 144–45, 163–65
creating, 153–55
radio buttons in, 165
Radio menu items, 423
Real coordinate system, 49
Record Group Fetch Size property,

241
Record groups, and LOVs, 227–28
Record History window, 331–32
Records page, Layout Wizard, 40–41
Relation object:
creation of, 109
and master block, 118
Relations, 25, 107
Report Builder, 404
Reports Runtime, 404, 409
Reusable code, 353–61
PL/SQL libraries, 362–73
program units, 354–61
stored PL/SQL objects, 374–78
Reusable objects, 313–52
subclassing, 80, 314–22
Subclass Information dialog box,
332–33
subclass objects, 315–17
RUN_PRODUCT built–in, 404, 405
running Oracle reports with, 406–7
RUN_REPORT_OBJECT built–in, 404, 405–6
running Oracle reports with, 407–8
S
Sample schema, xv–xvi
SECONDCAN, 273
SECONDWIN, 273–74
Separators, 424
SET_ALERT_PROPERTY built–in, 359
SET_ALERT_PROPTERY built–in, 257

SET_BLOCK_PROPERTY, 218, 397
SET_ built–ins, 214–15, 218–19
SET_CANVAS_PROPERTY, 218
SET_ITEM_PROPERTY built–in, 89, 218
SET_VIEW_PROPERTY built–in, 296
SET_WINDOW_PROPERTY built–in, 218
SHOW_ALERT built–in, 250, 257
Show Errors window, 202
SHOW_HIST trigger, 273, 284
SHOW_LIST button, 245
SHOW_LOV built–in, 245–46, 249
SHOW_VIEW built–in, 267, 275, 296, 355

Size Objects window, 102
Software requirements, xiii–xiv
Source page, LOV Wizard, 229, 236
SQL, using in triggers, 175–76
SQL query page, LOV Wizard, 229–30, 237
Stacked canvases, 287–97
creating/displaying, 289–92
defined, 287–88
INSTRUCTOR stacked canvas, 293–94
viewport, 288
Stacked Canvas tool, Tool Palette, 293
Stored PL/SQL objects, 374–78
calling, 374–75
moving between database and Forms
application, 375
using, 375–77
Style page, Layout Wizard, 40

Subclass Information property, 91,
318, 321, 344
Subclassing, 80, 314–22
Subclass Information dialog box,
332–33
subclass objects, 315–17
Summary Function property, 139
T
TABLE_ITEM_PROMPT_ALIGNMENT, 26
Table page, 35–37
Data Block Wizard, 34–37
Text Color button, 101–2
Text fields, 3
Text items, 3, 22, 126–27
creating/defining without the wizard,
127–30, 133–38
Enabled property, 134–35
Text Item tool, 134
Toolbar canvases, 298–310
creating, 299–302
TOOLBAR canvas, 305–6, 314–15
using in another form, 302–3
Tool Palette, 99–100, 134, 147
Layout Editor, 95
Stacked Canvas tool, 293
Transactional triggers, 175, 189
creating, 195–96
Triggers, 2–3, 9, 24–25, 172–212
and canvases, 25
categorizing, 173–75, 178–79

by function, 174–75
by name, 174
and events/items, 4
forms triggers, 9
key triggers, 174, 175, 189, 209–11
creating, 197–99
On event triggers, 174
Post event triggers, 174


Index
Pre event triggers, 174
query triggers, 175, 187–88
creating, 189–92
scope, 172–73, 176–77
transactional triggers, 175, 189
creating, 195–96
using PL/SQL and SQL in, 175–76
validation triggers, 175, 188–89
creating, 192–95
When event triggers, 174
Type page, 34
Data Block Wizard, 34
U
Update Layout property, 24, 98, 102–3
Use Security property, 440
Utility toolbar, Layout editor, 94, 283
V
VAL_ALERT alert, 357
Validate Item event, 3

Validating an item, 3
Validation triggers, 175, 188–89
creating, 192–95
Value When Checked property, 165–67
Value When Unchecked property,
165–67
View menu, Form Builder, 423–24
Viewport Height property, 275
Viewports, 266–67
Viewport Width property, 275
Visible property, 133
Visual attributes, 323
behavior of, 330
creating/applying, 325–27
Visual Attribute Type property,
330–31
Common value, 330

467

Prompt value, 331
Title value, 331
W
WHEN–BUTTON–PRESSED trigger, 7–8, 144,
158, 173, 181, 198, 209, 251, 254–55,
272–73, 280–81, 294, 354, 387
WHEN–CHECKBOX–CHANGED trigger, 9, 23,
167
WHEN–NEW–FORM–INSTANCE trigger, 26,
55, 216, 220, 389

WHEN–VALIDATE–ITEM triggers, 4, 47,
176–77, 179–83, 188–89, 193–94, 204–6,
353, 357–58, 360
WHEN–VALIDATE–RECORD trigger, 206
WINDOW–CLOSED trigger, 3
Windows, 14, 262–69
content windows, 277–86
defined, 262
dialog windows, 262–64, 271
displaying, 265–66
document windows, 262–64, 270
modal windows, 263–64
Multiple Document Interface (MDI)
window, 263, 272
styles of, 262
understanding, 267–69
Wizards, 32–52, 107, 288
Data Block Wizard, 32, 33–37, 42–43,
46–50
Layout Wizard, 32, 33, 37–42, 44–46,
48, 50–51
reentering, 43–45
Wrap Style property, 135
Www.oracle.com, 59
Www.phptr.com/phptrinteractive, 4
WYSIWYG, 12–13




×