Professional Documents
Culture Documents
Objectives
After completing this lesson, you should be able to do the
following:
Identify the components of the Property Palette
Manage object properties
Create and use Visual Attributes
Control the behavior and appearance of data blocks
Control frame properties
Create blocks that do not directly correspond to database
tables
Delete data blocks and their components
6-2
Lesson Aim
In this lesson, you learn how to customize existing data blocks and modify frames. You also
learn how to include blocks that are not associated with the database.
Reentrant wizard
1
Layout Editor
Property Palette
6-3
6-4
Toolbar
Search
backward
Expand/
collapse
Search
forward
Property
name
Property
value
Help:
Press F1.
6-5
Find field
Toolbar
Help
Description
Displays a two-column list of names and values of
properties that are valid for a particular object. Properties
are grouped under functional headings or nodes. You can
expand or collapse a node by using the plus and minus
icons beside the node name.
Enables you to quickly locate a particular property. The
Search Forward and Search Backward buttons enhance
your search.
Consists of a series of buttons that provide quick access to
commands
Enables you to obtain description, usage, and other
information about any property by pressing F1 with the
property selected
The screenshots show each of these features of the Property Palette and the Help window for a
particular property.
Oracle Fusion Middleware 11g: Build Applications with Oracle Forms 6 - 5
Pop-up list
6-6
Pop-up list
LOV window
More button
Description
A Text field is displayed where the current property can be set by entering
a text value. For longer text values, an iconic button also appears, enabling
you to open a text editor, as shown in the top-left screenshot in the slide.
This appears where a fixed set of values, such as Yes or No, is allowed for
the property. Click the down arrow to open the list, as shown in the bottomleft screenshot, and then select a value.
LOVs occur where a potentially large list of possible values is available.
Click the button in the property value column to invoke an LOV, as shown
in the screenshot at the right of the slide.
Use this when more complex settings are needed. Click More to open the
extra dialog box, similar to the example in the screenshot at the top-left of
the slide.
Changed
Default
Overridden
Inherited
6-7
Description
Specifies that the property value is the default value
Specifies that the property value has been changed from the
default
Specifies that the property value is inherited
Specifies that the property value was inherited but has been
overridden
Note: After you activate the Property Palette, its window remains open until you close it. The
window automatically displays the properties of each object you visit in the Layout Editor or the
Object Navigator. This is because, by default, the list of properties in the Property Palette is
synchronized whenever you select an object.
You can turn the synchronization on or off for a specific palette by clicking Pin/Unpin on the
Property Palette toolbar.
6-8
6-9
6 - 10
6 - 11
ORDERS
Order
Item
Next
record
Next navigation data block
6 - 12
Item
Current record
Number
of records
displayed
6 - 13
Records buffered
Query
Array
Size
Block display
Work file
6 - 14
6 - 15
Database Table
SELECT ....
WHERE Customer_Id < 110
ORDER BY Customer_Id
6 - 18
Customer_Id Order_Id
115
2457
105
2458
120
2459
104
2460
105
2461
WHERE Clause: Specifies a SQL condition that is attached to every default SELECT
statement associated with the data block through implicit SQL; use to define general
restrictions on the rows that this data block may fetch. This clause is automatically
appended (ANDed) with any conditions supplied by the operator in Enter Query mode.
ORDER BY Clause: Defines a default order for records displayed from a query. The
operator can alter this order by using the Query/Where dialog box at run time.
The graphics show how the blocks WHERE Clause and ORDER BY clause are used in the
WHERE clause and the ORDER BY clause of the SQL statement that is sent to the database. The
WHERE clause is appended to any existing query criteria (in this case there are none) to further
restrict the rows returned by the query. The ORDER BY clause determines the display order in
the data block.
6 - 19
Order
Item
6 - 20
6 - 22
Intersection/
Union
Union
6 - 23
Copying Properties
Copy
Paste
Name ORDERS
Query All Records
Query Allowed
Insert Allowed
Update Allowed
Delete Allowed
Name ITEMS
No
Yes
Yes
Yes
Yes
No
Yes
Yes
No
No
Properties
Source objects
6 - 25
Destination objects
Copyright 2009, Oracle. All rights reserved.
Copying Properties
You can copy the properties and values from the Property Palette to a buffer, so that they can be
applied (pasted) to other objects in your design session. To copy properties, perform the
following steps:
1. In the Property Palette, display and set the properties that are to be copied. This may be
from one object or a combination of objects.
2. Select the properties to be copied:
- To copy all property settings from the Property Palette, select Edit > Select All.
- To copy the selected property settings only, press and hold Ctrl and select each
property individually. This graphics at the left of the slide shows two properties being
copied.
3. Click Copy Properties on the toolbar of the Property Palette.
4. From the Object Navigator, select the object into which the properties are to be copied.
5. In the Property Palette, click Paste Properties. The selected object receives values from all
copied properties that are relevant to their object types, as shown in the graphics to the
right side of the slide, where the pasted property values are applied.
Note: It is possible to copy the property settings of an object to objects of different types. In this
case, properties that do not apply to the target object are ignored.
6 - 27
6 - 28
Summary
In this lesson, you should have learned that:
The Property Palette:
Contains property names and values that enable you to modify
Forms objects
Has tools to search for properties, inherit properties, expand or
collapse property categories, and pop-up lists and dialog boxes for
various properties
Shows different icons for default, changed, inherited, and
overridden properties
6 - 29
Summary
Modify the data block properties in its Property Palette to change its behavior at run time.
Data blocks have Navigation, Database, Records, Scrollbar, and other properties.
Database properties include WHERE Clause, ORDER BY Clause, Query Data Source
Type, and Maximum Records Fetched.
You can change frame properties to modify the arrangements of items within a data block.
You can copy properties between data blocks and other objects.
You can view and change the properties of several objects together. You can use
Intersection or Union settings to connect their properties in the Property Palette.