Copyright Ó Oracle Corporation, 1999. All rights reserved. 55 Working with Data Blocks and Frames.

26
Copyright Oracle Corporation, 1999. All rights reserved. 5 5 Working with Data Blocks and Fram es

Transcript of Copyright Ó Oracle Corporation, 1999. All rights reserved. 55 Working with Data Blocks and Frames.

Copyright Oracle Corporation, 1999. All rights reserved.

5555

Working with Data Blocks and FramesWorking with Data Blocks and Frames

5-5-22 Copyright Oracle Corporation, 1999. All rights reserved.

ObjectivesObjectives

After completing this lesson, you should be able to do the following:

• Identify the components of the Property Palette

• Manipulate properties through the Property Palette

• Control the behavior and appearance of data blocks

After completing this lesson, you should be able to do the following:

• Identify the components of the Property Palette

• Manipulate properties through the Property Palette

• Control the behavior and appearance of data blocks

5-5-33 Copyright Oracle Corporation, 1999. All rights reserved.

ObjectivesObjectives

• Control frame properties

• Create blocks that do not directly correspond to the database

• Delete data blocks and their components

• Control frame properties

• Create blocks that do not directly correspond to the database

• Delete data blocks and their components

5-5-44 Copyright Oracle Corporation, 1999. All rights reserved.

Modifying the Appearance and Behavior of Data Blocks

Modifying the Appearance and Behavior of Data Blocks

• Reentrant wizards

• Layout Editor

• Data Block Property Palette

• Frame Property Palette

• Reentrant wizards

• Layout Editor

• Data Block Property Palette

• Frame Property Palette

5-5-55 Copyright Oracle Corporation, 1999. All rights reserved.

Displaying the Property PaletteDisplaying the Property Palette

Use one of several methods:

• Select Tools—>Property Palette.

• Double-click the object icon in the Object Navigator.

• Double-click the object in Layout Editor.

• Click the right mouse button.

Use one of several methods:

• Select Tools—>Property Palette.

• Double-click the object icon in the Object Navigator.

• Double-click the object in Layout Editor.

• Click the right mouse button.

5-5-66 Copyright Oracle Corporation, 1999. All rights reserved.

Property Palette FeaturesProperty Palette Features

PropertyPropertynamename

PropertyPropertyvaluevalue

ToolbarToolbar

Expand/Expand/CollapseCollapse

Find fieldFind field

SearchSearchBackwardBackward

SearchSearchForwardForward

5-5-77 Copyright Oracle Corporation, 1999. All rights reserved.

Property ControlsProperty Controls

• Text field

• Pop-up list

• LOV window

• More button

• Text field

• Pop-up list

• LOV window

• More button

5-5-88 Copyright Oracle Corporation, 1999. All rights reserved.

Visual AttributesVisual Attributes

• Visual attributes:

– Are font, color, and pattern properties

– Can be set for form and menu objects

• A visual attribute is a form object with font, color, and pattern properties.

• Set the Visual Attribute Group property to the visual attribute object.

• Visual attributes:

– Are font, color, and pattern properties

– Can be set for form and menu objects

• A visual attribute is a form object with font, color, and pattern properties.

• Set the Visual Attribute Group property to the visual attribute object.

5-5-99 Copyright Oracle Corporation, 1999. All rights reserved.

Font, Pattern, and Color PickerFont, Pattern, and Color Picker

5-5-1010 Copyright Oracle Corporation, 1999. All rights reserved.

Data Block PropertiesData Block Properties

5-5-1111 Copyright Oracle Corporation, 1999. All rights reserved.

Data Block Property GroupsData Block Property Groups

• General

• Navigation

• Records

• Database

• Advanced Database

• Scrollbar

• Font and Color

• Character Mode

• International

• General

• Navigation

• Records

• Database

• Advanced Database

• Scrollbar

• Font and Color

• Character Mode

• International

5-5-1212 Copyright Oracle Corporation, 1999. All rights reserved.

Navigation PropertiesNavigation Properties

ORDERS

Order

ItemSameRecordNextRecord

Previous NavigationData Block

Next NavigationData Block

5-5-1313 Copyright Oracle Corporation, 1999. All rights reserved.

Database PropertiesDatabase Properties

Use properties in the Database group to control:

• Type of block—data or control block

• Query, insert, update, and delete operations on the data block

• Data block’s data source

• Query search criteria and default sort order

• Maximum query time

• Maximum number of records fetched

Use properties in the Database group to control:

• Type of block—data or control block

• Query, insert, update, and delete operations on the data block

• Data block’s data source

• Query search criteria and default sort order

• Maximum query time

• Maximum number of records fetched

5-5-1414 Copyright Oracle Corporation, 1999. All rights reserved.

SELECT ....

WHERE Clause

[ORDER BY Clause]

Database PropertiesDatabase Properties

Work fileWork file

Block displayBlock display

RecordsRecordsfetchedfetched

Records bufferedRecords buffered

5-5-1515 Copyright Oracle Corporation, 1999. All rights reserved.

Records PropertiesRecords Properties

Vertical Record OrientationVertical Record Orientation

Horizontal Record OrientationHorizontal Record Orientation

5-5-1616 Copyright Oracle Corporation, 1999. All rights reserved.

Records PropertiesRecords Properties

Item

Number

of Records

Displayed

Current Record

5-5-1717 Copyright Oracle Corporation, 1999. All rights reserved.

Scroll Bar PropertiesScroll Bar Properties

Item Scroll Bar X/YPosition

Scroll Bar Width

ScrollBarHeight

5-5-1818 Copyright Oracle Corporation, 1999. All rights reserved.

Frame PropertiesFrame Properties

ORDERS

Order

Item

FormLayoutStyle

TabularLayoutStyle

Distancebetweenrecords

5-5-1919 Copyright Oracle Corporation, 1999. All rights reserved.

Multiple Property PalettesMultiple Property Palettes

• Display multiple Property Palettes for an object:

1 Open a Property Palette for the object.

2 Hold down the [Shift] key and double-click the object icon for an additional palette.

• Display Property Palettes for the multiple objects:

1 Open the Property Palette for first object.

2 Click the Freeze/Unfreeze button on the toolbar.

3 Invoke Property Palette for the next object.

• Display multiple Property Palettes for an object:

1 Open a Property Palette for the object.

2 Hold down the [Shift] key and double-click the object icon for an additional palette.

• Display Property Palettes for the multiple objects:

1 Open the Property Palette for first object.

2 Click the Freeze/Unfreeze button on the toolbar.

3 Invoke Property Palette for the next object.

5-5-2020 Copyright Oracle Corporation, 1999. All rights reserved.

Setting Properties on Multiple ObjectsSetting Properties on Multiple Objects

Intersection/Union

5-5-2121 Copyright Oracle Corporation, 1999. All rights reserved.

Copying PropertiesCopying Properties

CopyCopy PastePaste

Source objectsSource objects Destination objectsDestination objects

PropertiesProperties

Query All Records NoQuery Allowed YesInsert Allowed YesUpdate Allowed YesDelete Allowed Yes

Name S_ITEMName S_ITEM

Query All Records NoQuery Allowed YesInsert Allowed YesUpdate Allowed YesDelete Allowed Yes

Query All Records YesQuery Allowed YesInsert Allowed YesUpdate Allowed NoDelete Allowed Yes

Query All Records YesQuery Allowed YesInsert Allowed YesUpdate Allowed NoDelete Allowed Yes

5-5-2222 Copyright Oracle Corporation, 1999. All rights reserved.

Creating a Control BlockCreating a Control Block

• Click the Data Blocks node and click the Create icon.

or

Select Navigator—>Create.

• Select the “Build a new data block manually” option in the New Data Block dialog box.

• Click the Data Blocks node and click the Create icon.

or

Select Navigator—>Create.

• Select the “Build a new data block manually” option in the New Data Block dialog box.

5-5-2323 Copyright Oracle Corporation, 1999. All rights reserved.

Deleting a Data BlockDeleting a Data Block

• Select a data block for deletion and click the Delete icon.

or

Select Navigator—>Delete.

• Click Yes in the alert box.

• Select a data block for deletion and click the Delete icon.

or

Select Navigator—>Delete.

• Click Yes in the alert box.

5-5-2424 Copyright Oracle Corporation, 1999. All rights reserved.

SummarySummary

• Modify the data block properties in its Property Palette to change its behavior.

• Data blocks have Navigation, Database, Records, Scrollbar and other properties.

• Database properties include WHERE Clause, Query Data Source, and Maximum Records Fetched.

• Change frame properties to modify the arrangements of items within a data block.

• Modify the data block properties in its Property Palette to change its behavior.

• Data blocks have Navigation, Database, Records, Scrollbar and other properties.

• Database properties include WHERE Clause, Query Data Source, and Maximum Records Fetched.

• Change frame properties to modify the arrangements of items within a data block.

5-5-2525 Copyright Oracle Corporation, 1999. All rights reserved.

SummarySummary

• A control block is not associated with the database.

• Copy properties between data blocks and other objects.

• View and change properties of several objects together (Intersection/Union).

• A control block is not associated with the database.

• Copy properties between data blocks and other objects.

• View and change properties of several objects together (Intersection/Union).

5-5-2626 Copyright Oracle Corporation, 1999. All rights reserved.

Practice 5 OverviewPractice 5 Overview

This practice covers the following topics:

• Creating a control block

• Creating a visual attribute

• Modifying data block properties

• Modifying frame properties

This practice covers the following topics:

• Creating a control block

• Creating a visual attribute

• Modifying data block properties

• Modifying frame properties