Date post: | 04-Jan-2016 |
Category: |
Documents |
Upload: | susan-blair |
View: | 214 times |
Download: | 0 times |
Copyright Oracle Corporation, 1999. All rights reserved.
9999
Creating Noninput ItemsCreating Noninput Items
9-9-22 Copyright Oracle Corporation, 1999. All rights reserved.
ObjectivesObjectives
After completing this lesson, you should be able to do the following:
• Identify item types that do not allow input
• Create a display item
• Create an image item
• Create a sound item
• Create a button
• Create a calculated item
• Create a hierarchical tree item
After completing this lesson, you should be able to do the following:
• Identify item types that do not allow input
• Create a display item
• Create an image item
• Create a sound item
• Create a button
• Create a calculated item
• Create a hierarchical tree item
9-9-33 Copyright Oracle Corporation, 1999. All rights reserved.
Noninput ItemsNoninput Items
Item types that do not accept direct user inputinclude:
• Display items
• Image items
• Sound items
• Buttons
• Calculated items
• Hierarchical tree items
Item types that do not accept direct user inputinclude:
• Display items
• Image items
• Sound items
• Buttons
• Calculated items
• Hierarchical tree items
9-9-44 Copyright Oracle Corporation, 1999. All rights reserved.
Display ItemsDisplay Items
• Display items are similar to text items.
• Display items cannot:
– Be edited
– Be queried
– Be navigated to
– Accept user input
• Display items can:
– Display data
– Conserve resources
• Display items are similar to text items.
• Display items cannot:
– Be edited
– Be queried
– Be navigated to
– Accept user input
• Display items can:
– Display data
– Conserve resources
9-9-55 Copyright Oracle Corporation, 1999. All rights reserved.
Creating a Display ItemCreating a Display Item
9-9-66 Copyright Oracle Corporation, 1999. All rights reserved.
Image ItemsImage Items
• Interface control
• Use to display bitmapped images:
– From file system——supported file type
– From database——LONG RAW column
• Interface control
• Use to display bitmapped images:
– From file system——supported file type
– From database——LONG RAW column
9-9-77 Copyright Oracle Corporation, 1999. All rights reserved.
Image File FormatsImage File Formats
PICT
TPIC
CALS
TIFF
GIF
JFIF
BMP
RAS
Image itemImage item
Image filesImage files Image filesImage files
Read Write
CALS
GIF
BMP
RAS
JPG
TIFF
JFIF
JPEG
PICT
TPIC
9-9-88 Copyright Oracle Corporation, 1999. All rights reserved.
Image-Specific Item PropertiesImage-Specific Item Properties
• Image Format
• Image Depth
• Compression Quality
• Display Quality
• Show Palette
• Sizing Style
• Show Horizontal Scrollbar
• Show Vertical Scrollbar
• Image Format
• Image Depth
• Compression Quality
• Display Quality
• Show Palette
• Sizing Style
• Show Horizontal Scrollbar
• Show Vertical Scrollbar
9-9-99 Copyright Oracle Corporation, 1999. All rights reserved.
Image Manipulation PaletteImage Manipulation Palette
ZoomZoom
PanPan
RotateRotate
SelectSelect
9-9-1010 Copyright Oracle Corporation, 1999. All rights reserved.
Creating an Image ItemCreating an Image Item
9-9-1111 Copyright Oracle Corporation, 1999. All rights reserved.
Sound ItemsSound Items
• Interface control
• Use to play and record sound:
– From file system——supported sound types
– From database——LONG RAW column
• Interface control
• Use to play and record sound:
– From file system——supported sound types
– From database——LONG RAW column
9-9-1212 Copyright Oracle Corporation, 1999. All rights reserved.
Sound Item Control Sound Item Control
PlayPlayPlayPlay
RecordRecordRecordRecord
RewindRewindRewindRewind
FastFastFastFastForwardForwardForwardForward
VolumeVolumeVolumeVolume
Time IndicatorTime IndicatorTime IndicatorTime Indicator
SliderSliderSliderSlider
9-9-1313 Copyright Oracle Corporation, 1999. All rights reserved.
Sound TypesSound Types
AUAU
AIFFAIFF
AIFF-CAIFF-C
WAVWAV
9-9-1414 Copyright Oracle Corporation, 1999. All rights reserved.
Sound-Specific Item PropertiesSound-Specific Item Properties
• Sound Format
• Audio Channels
• Compress
• Sound Quality
• Show Play/Record/Rewind/Fast Forward/Volume Control/Time Indicator/Slider Button
• Sound Format
• Audio Channels
• Compress
• Sound Quality
• Show Play/Record/Rewind/Fast Forward/Volume Control/Time Indicator/Slider Button
9-9-1515 Copyright Oracle Corporation, 1999. All rights reserved.
Creating a Sound ItemCreating a Sound Item
9-9-1616 Copyright Oracle Corporation, 1999. All rights reserved.
ButtonsButtons
• Interface control
• Cannot display/represent data
• Use to initiate an action
• Display as:
– Text button
– Iconic
• Interface control
• Cannot display/represent data
• Use to initiate an action
• Display as:
– Text button
– Iconic
9-9-1717 Copyright Oracle Corporation, 1999. All rights reserved.
ButtonsButtons
• Use buttons to:
– Move input focus
– Display an LOV
– Invoke an editor
– Invoke another window
– Commit data
– Issue a query
– Perform calculations
• Use buttons to:
– Move input focus
– Display an LOV
– Invoke an editor
– Invoke another window
– Commit data
– Issue a query
– Perform calculations
9-9-1818 Copyright Oracle Corporation, 1999. All rights reserved.
Button-Specific Item PropertiesButton-Specific Item Properties
• Label
• Mouse Navigate
• Default Button
• Iconic
• Icon Filename
• Tooltip
• Tooltip Visual Attribute Group
• Label
• Mouse Navigate
• Default Button
• Iconic
• Icon Filename
• Tooltip
• Tooltip Visual Attribute Group
9-9-1919 Copyright Oracle Corporation, 1999. All rights reserved.
Tool TipTool Tip
9-9-2020 Copyright Oracle Corporation, 1999. All rights reserved.
Creating a ButtonCreating a Button
9-9-2121 Copyright Oracle Corporation, 1999. All rights reserved.
Calculated ItemsCalculated Items
• They accept item values that are based on calculations.
• They are read-only.
• They can be expressed as:
– Formula
– Summary
• They accept item values that are based on calculations.
• They are read-only.
• They can be expressed as:
– Formula
– Summary
9-9-2222 Copyright Oracle Corporation, 1999. All rights reserved.
Calculation ModesCalculation Modes
• Formula
– A calculated item value is the result of a horizontal calculation.
– It involves bind variables.
• Summary
– A calculated item value is a vertical calculation.
– A summary is performed on values of a single item over all rows in a block.
• Formula
– A calculated item value is the result of a horizontal calculation.
– It involves bind variables.
• Summary
– A calculated item value is a vertical calculation.
– A summary is performed on values of a single item over all rows in a block.
9-9-2323 Copyright Oracle Corporation, 1999. All rights reserved.
Item Properties Specific to the Calculated Item
Item Properties Specific to the Calculated Item
Formula
• Calculation Mode
• Formula
Formula
• Calculation Mode
• Formula
Summary
• Calculation Mode
• Summary Function
• Summarized Block
• Summarized Item
Summary
• Calculation Mode
• Summary Function
• Summarized Block
• Summarized Item
9-9-2424 Copyright Oracle Corporation, 1999. All rights reserved.
Summary FunctionsSummary Functions
• AVG
• COUNT
• MAX
• MIN
• STDDEV
• SUM
• VARIANCE
• AVG
• COUNT
• MAX
• MIN
• STDDEV
• SUM
• VARIANCE
9-9-2525 Copyright Oracle Corporation, 1999. All rights reserved.
Item Based on a FormulaItem Based on a Formula
ORDERSOrder
Item id Product id Price Qty ShippedItemTotal
12
43
2001205025
5493
1,00048045075
NVL((:s_item.price * :s_item.quantity_shipped),0)NVL((:s_item.price * :s_item.quantity_shipped),0)
Item
Formulaitem
9-9-2626 Copyright Oracle Corporation, 1999. All rights reserved.
Rules for Formula ItemsRules for Formula Items
• A formula item must not invoke restricted built-ins.
• A formula item cannot execute any DML statements.
• Do not terminate a PL/SQL expression with a semicolon.
• Do not enter a complete PL/SQL statement in assignment expressions.
• A formula item must not invoke restricted built-ins.
• A formula item cannot execute any DML statements.
• Do not terminate a PL/SQL expression with a semicolon.
• Do not enter a complete PL/SQL statement in assignment expressions.
9-9-2727 Copyright Oracle Corporation, 1999. All rights reserved.
Item Based on a Summary Item Based on a Summary
ORDERSOrder
Item id Product id Price Qty ShippedItemTotal
12
43
2001205025
5493
1,00048045075
Item
2,005Order Total
Summarizeditem
Summaryitem
9-9-2828 Copyright Oracle Corporation, 1999. All rights reserved.
Rules for Summary ItemsRules for Summary Items
• Summary item must reside in:
– The same block as the summarized item
– A control block with Single Record property set to Yes
• Summarized item must reside in:
– A data block with Query All Records property or Precompute Summaries property set to Yes
– A control block
• Datatype of summary item must be Number, unless using MAX or MIN
• Summary item must reside in:
– The same block as the summarized item
– A control block with Single Record property set to Yes
• Summarized item must reside in:
– A data block with Query All Records property or Precompute Summaries property set to Yes
– A control block
• Datatype of summary item must be Number, unless using MAX or MIN
9-9-2929 Copyright Oracle Corporation, 1999. All rights reserved.
Creating a Hierarchical TreeCreating a Hierarchical Tree
9-9-3030 Copyright Oracle Corporation, 1999. All rights reserved.
Hierarchical Tree PropertiesHierarchical Tree Properties
• Allow empty branches
• Multi selection
• Show lines
• Show symbols
• Record group
• Data query
• Allow empty branches
• Multi selection
• Show lines
• Show symbols
• Record group
• Data query
9-9-3131 Copyright Oracle Corporation, 1999. All rights reserved.
SummarySummary
• Display items
• Image items
• Sound items
• Buttons
• Calculated items
• Hierarchical tree items
• Display items
• Image items
• Sound items
• Buttons
• Calculated items
• Hierarchical tree items
9-9-3232 Copyright Oracle Corporation, 1999. All rights reserved.
Practice 9 OverviewPractice 9 Overview
This practice covers the following topics:
• Creating display items
• Creating an image item
• Creating iconic buttons
• Creating calculated items:
– Formula
– Summary
This practice covers the following topics:
• Creating display items
• Creating an image item
• Creating iconic buttons
• Creating calculated items:
– Formula
– Summary