Você está na página 1de 34

Oracle Forms Development

Extending Applications the Right way

NCOAUG Training Day


August 15, 2003
Harper College, Palatine, IL
Susan Behn
www.solutionbeacon.com

© 2003 Solution Beacon, LLC. All Rights Reserved.


Introduction

• Solution Beacon, LLC


• Susan Behn

2
© 2003 Solution Beacon, LLC. All Rights Reserved.
Outline
• Why Follow Standards?
• Assumptions
• Getting Started
• Property Classes
• Development Standards
• Additional Resources
• Summary

3
© 2003 Solution Beacon, LLC. All Rights Reserved.
Why follow standards?
• Faster development

• Consistent user interface

• Web compatibility

• Easier maintenance

• Compliance with American Disabilities Act

• Language and Currency Translation

4
© 2003 Solution Beacon, LLC. All Rights Reserved.
Assumptions/Scope
• Development environment is Applications Release
11i/Forms 6i

• You are familiar with Forms Builder 6i

• Your custom application and schema have been built


and registered

5
© 2003 Solution Beacon, LLC. All Rights Reserved.
Getting Started
Download from $AU_TOP/forms/US

•TEMPLATE.fmb
•APPSTAND.fmb

6
© 2003 Solution Beacon, LLC. All Rights Reserved.
Property Classes
• Provide visual and behavioral attributes for objects

• Available for almost every object type

• Do not override inherited property class attributes!

7
© 2003 Solution Beacon, LLC. All Rights Reserved.
Logical Order of Development
Module

Libraries
Triggers
Windows
Canvases
Data Blocks

Layout
Add’l Code

8
© 2003 Solution Beacon, LLC. All Rights Reserved.
Module
Module Property class = Module
Libraries
Triggers
Windows
Canvases
Data Blocks

Layout
Add’l Code

9
© 2003 Solution Beacon, LLC. All Rights Reserved.
Libraries
Module

Libraries Core
Triggers App Specific
Windows
Canvases
Data Blocks

Layout
Add’l Code

10
© 2003 Solution Beacon, LLC. All Rights Reserved.
Libraries - Core
• APPCORE.pll Application Standards
• FNDSQF.pll Descriptive Flexfields, Currency,
Concurrent Request Submission,
Record History, Message Dictionary
• APPDAYPK.pll Calendar popup
• CUSTOM.pll Customizations of standard forms
• VERT.pll Specific industry features
• GLOBE.pll Global or regional features
• JA.pll Asia/Pacific features
• JE.pll Europe/Middle East/Africa features
• JL.pll Latin America Code

Download from $AU_TOP/resource

11
© 2003 Solution Beacon, LLC. All Rights Reserved.
Libraries – Application Specific
• FV.pll
• HRKPI.pll
• GHR.pll
• GMS.pll
• IGILUTIL.pll
• IGILUTIL2.pll
• PSAC.pll
• PQH_GEN.pll
• PSA.pll
• PSB.pll
• OPM.pll
• APPCORE2.pll
• APPFLDR.pll

Download from $AU_TOP/resource

12
© 2003 Solution Beacon, LLC. All Rights Reserved.
Triggers
Module

Libraries
Triggers Required
Windows Restricted
Canvases Optional
Data Blocks

Layout
Add’l Code

13
© 2003 Solution Beacon, LLC. All Rights Reserved.
Triggers - Required
• PRE-FORM must be modified

14
© 2003 Solution Beacon, LLC. All Rights Reserved.
Don’t Touch This!
• STANDARD_ATTACHMENTS
• ZOOM
• FOLDER_ACTION
• KEY-HELP
• KEY-EXIT
• KEY-EDIT
• KEY-COMMIT
• WHEN-WINDOW-CLOSED
• CLOSE_WINDOW

15
© 2003 Solution Beacon, LLC. All Rights Reserved.
Triggers - Optional
• Execution Hierarchy = Before
• WHEN-NEW-RECORD-INSTANCE
• WHEN-NEW-BLOCK-INSTANCE
• WHEN-NEW-ITEM-INSTANCE
• Execution Hierarchy = After
• POST-QUERY
• Execution Hierarchy = Override
• KEY-DUPREC
• KEY-MENU
• KEY-LISTVAL
• QUERY-FIND
• ACCEPT

16
© 2003 Solution Beacon, LLC. All Rights Reserved.
Window
Module

Libraries
Triggers
Windows Modal
Canvases Non-Modal
Data Blocks

Layout
Add’l Code

17
© 2003 Solution Beacon, LLC. All Rights Reserved.
Modal Windows
• Property class = WINDOW_DIALOG
• Center window using
APP_WINDOW.SET_WINDOW_POSITION
• Explicitly write code to close the window
• Code OK and Cancel buttons in advance
• Use dialog blocks with property class =
BLOCK_DIALOG
• Disable key triggers

18
© 2003 Solution Beacon, LLC. All Rights Reserved.
Non-Modal Windows
• Property class = WINDOW
• Each window should contain one logical entity
• Do not attach scroll bars to windows
• Size between 2”x2” and 7.8”w x 5.0”h
• Size only as large as necessary
• No text on top and bottom lines
• Blank left and right edge character cell except for
boundary lines
• Unique title for each window in a form

19
© 2003 Solution Beacon, LLC. All Rights Reserved.
Canvases
Module

Libraries
Triggers
Windows
Canvases Basics
Data Blocks Ruler

Layout
Add’l Code

20
© 2003 Solution Beacon, LLC. All Rights Reserved.
Canvas - Basics
• Property class = CANVAS, TAB_CANVAS or
CANVAS_STACKED

• Each window contains one content canvas

• Tab or stacked canvases may be placed in front of a


content canvas

• Utilize tabs to avoid scrolling

21
© 2003 Solution Beacon, LLC. All Rights Reserved.
Canvas - Ruler
• Ruler Settings

• Turn snap to grid on in the View drop down

22
© 2003 Solution Beacon, LLC. All Rights Reserved.
Data Blocks
Module

Libraries
Triggers
Windows
Canvases
Data Blocks Basics

Layout Items
Add’l Code ADA Items

23
© 2003 Solution Beacon, LLC. All Rights Reserved.
Data Blocks - Basics
• Base data blocks on views, not tables

• Navigation style:
• One block: Current Record
• More blocks: Next Block

• Module: Now set First Navigation Block

• Multi-row blocks: Add scroll bar and current record


indicator

24
© 2003 Solution Beacon, LLC. All Rights Reserved.
Data Block - Items
• Enable the calendar for every date field
ENABLE_LIST_LAMP
Call calendar_show from KEY-LISTVAL
• Control valid dates
• Validate from List = Yes for items with LOVs
• Maximum size = size of database column
• Check boxes always have a default value
• Buttons belong to the block in which they appear to
sit.
• Base LOVs on views

25
© 2003 Solution Beacon, LLC. All Rights Reserved.
Data Block - Items
Compliance with American Disabilities Act

• Specify access keys for text buttons using &


• Specify access keys for non-navigable option buttons
• Specify access keys for check boxes
• Enter hint text for items
• Optionally enter tooltip help
• Prompts are read in the following order:
• Hint Text
• Prompt
• Label
• Tooltip help

26
© 2003 Solution Beacon, LLC. All Rights Reserved.
Layout
Module

Libraries
Triggers
Windows
Canvases
Data Blocks Regions

Layout Tabs
Add’l Code Items

27
© 2003 Solution Beacon, LLC. All Rights Reserved.
Layout - Regions
Stacked
Alignment

Coordination
Check Box

Scroll Bar

Current
Record
Indicator

Region Frame

28
© 2003 Solution Beacon, LLC. All Rights Reserved.
Layout - Tabs
• Tab Pages

One
Line

1 character cell

29
© 2003 Solution Beacon, LLC. All Rights Reserved.
Layout - Items
• Items
• The leftmost button in the window should be the
default unless it is a help button.
• Allow 30% additional text space for language
translation
• Set alignment to start
• Tabbed regions
• One character space between fixed and alternating
regions
• Place coordination check box outside the tabbed
region
• Navigation: Left to right, top to bottom

30
© 2003 Solution Beacon, LLC. All Rights Reserved.
Additional Code
Module

Libraries
Triggers
Windows
Canvases
Data Blocks

Layout
Add’l Code Use program units!

31
© 2003 Solution Beacon, LLC. All Rights Reserved.
Other Sources of Information
• Oracle Applications User Interface Standards for
Forms-Based Products

• Oracle Applications Developer’s Guide

• Oracle Applications System Administrator’s Guide

• Oracle Applications User Guide

32
© 2003 Solution Beacon, LLC. All Rights Reserved.
Summary
• Start with TEMPLATE.fmb

• Always apply property classes

• Set trigger execution hierarchy correctly

• Follow layout standards

• Use program units to keep code modular

• Make it pretty!

33
© 2003 Solution Beacon, LLC. All Rights Reserved.
Thank you!
If you have any questions or comments please contact me:

Susan Behn sbehn@solutionbeacon.com

For free R11i Tools please visit our website at:

www.solutionbeacon.com

34
© 2003 Solution Beacon, LLC. All Rights Reserved.

Você também pode gostar