260 likes | 275 Views
Working with Data Blocks and Frames. Objectives. 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. Objectives.
E N D
Objectives 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
Objectives • Control frame properties • Create blocks that do not directly correspond to the database • Delete data blocks and their components
Modifying the Appearance and Behavior of Data Blocks • Reentrant wizards • Layout Editor • Data Block Property Palette • Frame Property Palette
Displaying 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.
Find field Toolbar Search Expand/ Backward Collapse Search Forward Property Property name value Property Palette Features
Property Controls • Text field • Pop-up list • LOV window • More button
Visual 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.
Data Block Property Groups • General • Navigation • Records • Database • Advanced Database • Scrollbar • Font and Color • Character Mode • International
Previous Navigation Data Block Same Record Next Record Next Navigation Data Block Navigation Properties ORDERS Order Item
Database 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
Database Properties Records buffered Records fetched Block display SELECT .... WHERE Clause [ORDER BY Clause] Work file
Records Properties Vertical Record Orientation Horizontal Record Orientation
Records Properties Item Current Record Number of Records Displayed
Scroll Bar X/Y Position Scroll Bar Height Scroll Bar Width Scroll Bar Properties Item
Frame Properties ORDERS Order Form Layout Style Item Tabular Layout Style Distance between records
Multiple Property Palettes • Display multiple Property Palettes for an object: • Open a Property Palette for the object. • Hold down the [Shift] key and double-click the object icon for an additional palette. • Display Property Palettes for the multiple objects: • Open the Property Palette for first object. • Click the Freeze/Unfreeze button on the toolbar. • Invoke Property Palette for the next object.
Intersection/ Union Setting Properties on Multiple Objects
Copying Properties Copy Paste Name S_ITEM Query All Records Yes Query Allowed Yes Insert Allowed Yes Update Allowed No Delete Allowed Yes Query All Records No Query Allowed Yes Insert Allowed Yes Update Allowed Yes Delete Allowed Yes Query All Records Yes Query Allowed Yes Insert Allowed Yes Update Allowed No Delete Allowed Yes Query All Records No Query Allowed Yes Insert Allowed Yes Update Allowed Yes Delete Allowed Yes Properties Source objects Destination objects
Creating 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.
Deleting a Data Block • Select a data block for deletion and click the Delete icon. or Select Navigator—>Delete. • Click Yes in the alert box.
Summary • 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.
Summary • 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).
Practice 5 Overview This practice covers the following topics: • Creating a control block • Creating a visual attribute • Modifying data block properties • Modifying frame properties