Beruflich Dokumente
Kultur Dokumente
Objectives
After completing this lesson, you should be able to do the
following:
Create data blocks with relationships
Modify a data block
Modify the layout of a data block
Run a master-detail form
5-2
Lesson Aim
A common type of application is to show a record or records from one table along with
associated records from another table. Forms Developer gives you the ability to quickly define
additional data blocks and to define relations between the new blocks and any existing blocks in
the form. This lesson shows you how to create a master-detail form and how to modify a data
block and its layout.
Master
Master
Detail
Detail
Master
Master
Detail
Detail
Detail
5-3
ORDERS
CUSTOMERS
ITEMS
ORDERS
CUSTOMERS
ORDERS
ACCOUNT_REPS
ITEMS
5-4
5-5
5-7
5-8
5-9
5 - 10
= Deleted
5 - 11
Use
Prevents the deletion of the master record when detail records
exist; the master record is deleted only if no detail records exist
Deletes the detail records when a master record is deleted
Deletes only the master record
The graphics show what happens to master and detail records with different settings of the
Delete Record Behavior property, as described in the text beside each graphic.
Note: Although deleting with the cascading property may remove many detail records, the
commit message shows only the number of records deleted from the master block.
5 - 12
Default
5 - 13
Deferred
with automatic
query
Deferred
without
automatic query
Coordination Property
Default (depicted in first slide
graphic)
Deferred with Automatic Query
(depicted in second slide graphic)
Deferred without Automatic Query
(depicted in first third graphic)
Prevent Masterless Operations
Use
Forces coordination of blocks to occur whenever
the master record is changed by a user or a
trigger
Postpones potentially expensive detail query
processing until the cursor visits the related
blocks
Allows entry of additional query criteria in the
detail block before querying
Ensures that the detail block cannot be queried
or used to insert records when a master record is
not displayed
Note: In the New Relation dialog box, setting the Deferred property to Yes enables the Auto
Query check box.
Oracle Fusion Middleware 11g: Build Applications with Oracle Forms 5 - 13
Object Navigator:
Create or delete items.
Change item properties.
5 - 14
Layout Editor:
Select Tools > Layout Editor.
Make changes manually.
5 - 15
Summary
In this lesson, you should have learned that:
You can create data blocks with relationships by using the
Data Block Wizard or by manually creating a Relation
object
When you run a master-detail form, block coordination is
automatic depending on properties of the Relation object
You can modify a data block manually or with the Data
Block Wizard in reentrant mode
You can modify the layout manually or with the Layout
Wizard in reentrant mode
5 - 17
Summary
In this lesson, you should have learned about:
Creating data blocks with a master-detail relationship
Modifying the data block layout:
- Using reentrant wizards
- Changing frame properties