working with text items

22
Copyright Oracle Corporation, 1999. All rights reserved. 6 6 Working with Text Items

Upload: maylin

Post on 25-Jan-2016

29 views

Category:

Documents


1 download

DESCRIPTION

Working with Text Items. Objectives. After completing this lesson, you should be able to do the following : Describe text items Create a text item Modify the appearance of a text item Control the data in a text item. Objectives. Modify the navigational behavior of a text item - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Working with Text Items

Copyright Oracle Corporation, 1999. All rights reserved.

6666

Working with Text ItemsWorking with Text Items

Page 2: Working with Text Items

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

ObjectivesObjectives

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

• Describe text items

• Create a text item

• Modify the appearance of a text item

• Control the data in a text item

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

• Describe text items

• Create a text item

• Modify the appearance of a text item

• Control the data in a text item

Page 3: Working with Text Items

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

ObjectivesObjectives

• Modify the navigational behavior of a text item

• Enhance the relationship between the text item and the database

• Modify the functionality of a text item

• Include Help messages

• Modify the navigational behavior of a text item

• Enhance the relationship between the text item and the database

• Modify the functionality of a text item

• Include Help messages

Page 4: Working with Text Items

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

Text ItemsText Items

• Default item type

• Interface object for:

– Querying

– Inserting

– Updating

– Deleting

• Behavior defined in the Property Palette

• Default item type

• Interface object for:

– Querying

– Inserting

– Updating

– Deleting

• Behavior defined in the Property Palette

Page 5: Working with Text Items

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

Creating a Text ItemCreating a Text Item Canvas selectionCanvas selection Block selectionBlock selection

Page 6: Working with Text Items

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

Modifying the Appearance of a Text ItemModifying the Appearance of a Text Item

Order

Item

Distancebetweenrecords

Numberof itemsdisplayed

Page 7: Working with Text Items

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

Font and Color PropertiesFont and Color Properties

Use properties in the Font and Color group to specifyan item’s:

• Visual attributes

• Font name, size, weight, style, color, and pattern

Use properties in the Font and Color group to specifyan item’s:

• Visual attributes

• Font name, size, weight, style, color, and pattern

Page 8: Working with Text Items

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

PromptsPrompts

• Prompts specify the text label that is associated with an item.

• Several properties are available to arrange and manage prompts.

• Use prompt properties of an item to change the prompt’s display style, justification, alignment, color, and font.

• Prompts specify the text label that is associated with an item.

• Several properties are available to arrange and manage prompts.

• Use prompt properties of an item to change the prompt’s display style, justification, alignment, color, and font.

Page 9: Working with Text Items

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

Associating Text with an Item PromptAssociating Text with an Item Prompt

1

2

3

Page 10: Working with Text Items

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

Synchronize with Item PropertySynchronize with Item Property

1 2

Page 11: Working with Text Items

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

Copy Value from Item PropertyCopy Value from Item Property

ORDERS

Sales

Dept

1Region Id

Name

Id Last Name First Name Title Dept Id3 Nagayama Midori VP, Sales 3111 Magee Colin Sales Rep 31

Employee

31Id

Page 12: Working with Text Items

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

Format MasksFormat Masks

• Standard SQL formats

– Dates FXDD-MON-YY

– Numbers L099G99D99

• Nonstandard formats

Use double quotes for embedded characters

"("099")"099"-"0999

Note: Allow for format mask’s embedded characters when defining Width property.

• Standard SQL formats

– Dates FXDD-MON-YY

– Numbers L099G99D99

• Nonstandard formats

Use double quotes for embedded characters

"("099")"099"-"0999

Note: Allow for format mask’s embedded characters when defining Width property.

Page 13: Working with Text Items

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

Initial ValuesInitial Values

• Are used for every new record

• Can be overwritten

• Must be compatible with item’s data type

• Use:

– Raw value

– System variable

– Global variable

– Form parameter

– Form item

– Sequence

• Are used for every new record

• Can be overwritten

• Must be compatible with item’s data type

• Use:

– Raw value

– System variable

– Global variable

– Form parameter

– Form item

– Sequence

Page 14: Working with Text Items

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

Navigational Behavior of Text ItemsNavigational Behavior of Text Items

• Established by order of entries in Object Navigator

• Controlled by:

– Keyboard Navigable

– Previous Navigation Item

– Next Navigation Item

• Established by order of entries in Object Navigator

• Controlled by:

– Keyboard Navigable

– Previous Navigation Item

– Next Navigation Item

Page 15: Working with Text Items

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

Database PropertiesDatabase Properties

Use properties in the Database group to control:

• Item’s data source——base table item or control item

• Query, insert, and update operations on an item

• Maximum query length

• Query case

Use properties in the Database group to control:

• Item’s data source——base table item or control item

• Query, insert, and update operations on an item

• Maximum query length

• Query case

Page 16: Working with Text Items

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

Functional PropertiesFunctional Properties

Item

Id Product Id Price Shipped Item Total

10011 135 500 67,500.00

10013 380 400 152,000.00

1

2

Order

CREDIT

Order Id DateOrdered

DateShipped

PaymentType

100

Enabled=No

31-aug-1992

10-sep-1992

CaseRestriction=Upper

Justification =Start

Justification =Right

Page 17: Working with Text Items

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

Conceal Data PropertyConceal Data Property

Enter Userid:

Enter Password:

scott

*****

Log Screen

Page 18: Working with Text Items

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

Keyboard Navigable and Enabled PropertiesKeyboard Navigable

and Enabled Properties

• Set both properties to allow or disallow navigation and interaction with text item.

• When Enabled is set to Yes, Keyboard Navigable can be set to Yes or No.

• When Enabled is set to No, the item is always nonnavigable.

• Set both properties to allow or disallow navigation and interaction with text item.

• When Enabled is set to Yes, Keyboard Navigable can be set to Yes or No.

• When Enabled is set to No, the item is always nonnavigable.

Page 19: Working with Text Items

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

Multiline Text ItemsMultiline Text Items

Text

Text

Text

Text

WidthWidth

HeightHeight

Total text = Maximum lengthTotal text = Maximum length

Page 20: Working with Text Items

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

Help PropertiesHelp Properties

HintHint

Page 21: Working with Text Items

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

SummarySummary

• Creating a text item

• Modifying appearance

• Controlling data

• Altering navigational behavior

• Enhancing relationship with database

• Adding functionality

• Including context-sensitive Help

• Creating a text item

• Modifying appearance

• Controlling data

• Altering navigational behavior

• Enhancing relationship with database

• Adding functionality

• Including context-sensitive Help

Page 22: Working with Text Items

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

Practice 6 OverviewPractice 6 Overview

This practice covers the following topics:

• Deleting text items

• Modifying text item properties

• Creating text items

This practice covers the following topics:

• Deleting text items

• Modifying text item properties

• Creating text items