Download View

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Oracle Database wikipedia , lookup

Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup

Transcript
Working with Text Items
Copyright © 2004, Oracle. All rights reserved.
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
• Alter the navigational behavior of a text item
• Enhance the relationship between the text item
and the database
• Add functionality to a text item
• Display helpful messages
7-2
Copyright © 2004, Oracle. All rights reserved.
Text Item Overview
What is a text item?
•
Default item type
•
Interface object for:
–
–
–
–
•
7-3
Querying
Inserting
Updating
Deleting
Behavior defined in
the Property Palette
Copyright © 2004, Oracle. All rights reserved.
Creating a Text Item
Canvas selection
7-4
Block selection
Copyright © 2004, Oracle. All rights reserved.
Modifying the Appearance of a Text Item:
General and Physical Properties
7-6
Copyright © 2004, Oracle. All rights reserved.
Modifying the Appearance of a Text Item:
Records Properties
Orders
Items
Distance
between
records
Number
of items
displayed
7-7
Copyright © 2004, Oracle. All rights reserved.
Modifying the Appearance of a Text Item:
Font and Color Properties
Use properties in the Font
and Color groups to
specify an item’s:
• Visual attributes
• Font name, size,
weight, style,
color, and pattern
7-8
Copyright © 2004, Oracle. All rights reserved.
Modifying the Appearance of a Text Item:
Prompts
•
•
•
7-9
A prompt specifies
the text label that is
associated with an
item.
Several properties are
available to arrange
and manage prompts.
Use prompt
properties to change
the appearance of an
item prompt.
Copyright © 2004, Oracle. All rights reserved.
Associating Text with an Item Prompt
1
3
2
4
7-10
Copyright © 2004, Oracle. All rights reserved.
Controlling the Data of a Text Item
Use properties in Data group
to control the data:
• Type
• Length
• Format
• Value
US7ASCII
VARCHAR2(5 CHAR)
JA16SJIS
VARCHAR2(5 CHAR)
1
UTF8
1
VARCHAR2(5 CHAR)
7-11
1 2 3 4 5
2
2
3
3
Copyright © 2004, Oracle. All rights reserved.
4
5
Controlling the Data of a Text Item:
Format
Format masks:
• Standard SQL formats
– Dates
– Numbers
FXDD-MON-YY
L099G990D99
•
Nonstandard formats
Use double quotes for
embedded characters
“(“099”)”099“-”0999
Note: Allow for format mask’s
embedded characters when
defining Width property.
7-12
Copyright © 2004, Oracle. All rights reserved.
Controlling the Data of a Text Item:
Values
Initial Values:
• Are used for every new record
•
Can be overwritten
•
Must be compatible with item’s data type
•
Use:
–
–
–
–
–
–
7-13
Raw value
System variable
Global variable
Form parameter
Form item
Sequence
Copyright © 2004, Oracle. All rights reserved.
Controlling the Data of a Text Item:
Copy Value from Item
ORDERS
<data_block_name>.<item_name>
Dept
Id 31
Name
Region Id
1
Sales
Employee
Id
3
11
7-15
Last Name
Nagayama
Magee
First Name
Midori
Colin
Title
VP, Sales
Sales Rep
Copyright © 2004, Oracle. All rights reserved.
Dept Id
31
31
Controlling the Data of a Text Item:
Synchronize with Item
7-16
Copyright © 2004, Oracle. All rights reserved.
Altering Navigational Behavior of
Text Items
•
•
Established by order of
entries in Object Navigator
Alter by:
– Keyboard Navigable
– Previous Navigation Item
– Next Navigation Item
7-17
Copyright © 2004, Oracle. All rights reserved.
Enhancing the Relationship Between Text
Item and Database
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
7-18
Copyright © 2004, Oracle. All rights reserved.
Adding Functionality to a Text Item
Enabled=No
Order
Order Id 100
Payment
Type
Case
Restriction=
Upper
CREDIT
Item
Justification = Right
Id
Product Id
1
10011
2
10013
Price
Quantity
Item Total
135
500
67,500.00
380
400 152,000.00
Justification = Start
7-19
Copyright © 2004, Oracle. All rights reserved.
Adding Functionality to a Text Item:
Conceal Data Property
7-20
Copyright © 2004, Oracle. All rights reserved.
Adding Functionality to a Text Item:
Keyboard Navigable and Enabled
•
•
•
7-21
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.
Copyright © 2004, Oracle. All rights reserved.
Adding Functionality to a Text Item:
Multi-line Text Items
Total text = Maximum length
Text
Text
Height
Text
Text
Width
7-22
Copyright © 2004, Oracle. All rights reserved.
Displaying Helpful Messages:
Help Properties
Tooltip
Hint
7-23
Copyright © 2004, Oracle. All rights reserved.
Summary
In this lesson, you should have learned that:
• Text items are interface objects that usually
correspond to database columns
• You can create a text item with:
– The Text Item tool in the Layout Editor
– The Create icon in the Object Navigator
– The Data Block Wizard
7-24
Copyright © 2004, Oracle. All rights reserved.
Summary
•
You can modify a text item in its Property Palette:
– General, Records, and Physical properties control
the appearance of the text item
– Data properties control the length, datatype, format,
and other aspects of the data.
– Navigation properties control how to navigate to
and from a text item.
– Database properties specify the relationship
between the text item and its corresponding
database column.
– Functional properties control how the text item
functions.
– Help properties specify the display of helpful
messages.
7-25
Copyright © 2004, Oracle. All rights reserved.
Practice 7 Overview
This practice covers the following topics:
• Deleting text items
• Modifying text item properties
• Creating text items
7-26
Copyright © 2004, Oracle. All rights reserved.