Oracle Forms Brief)

Embed Size (px)

Citation preview

  • 8/9/2019 Oracle Forms Brief)

    1/34

    2003 Solution Beacon, LLC. All Rights Reserved.

    Oracle Forms DevelopmentExtending Applications the Right way

    NCOAUG Training DayAugust 15, 2003

    Harper College, Palatine, ILSusan Behn

    www.solutionbeacon.com

  • 8/9/2019 Oracle Forms Brief)

    2/34

    2

    2003 Solution Beacon, LLC. All Rights Reserved.

    Introduction

    Solution Beacon, LLC Susan Behn

  • 8/9/2019 Oracle Forms Brief)

    3/34

    3

    2003 Solution Beacon, LLC. All Rights Reserved.

    Why Follow Standards?

    Assumptions

    Getting Started

    Property ClassesDevelopment Standards

    Additional Resources

    Summary

    Outline

  • 8/9/2019 Oracle Forms Brief)

    4/34

    4

    2003 Solution Beacon, LLC. All Rights Reserved.

    Faster development

    Consistent user interface

    Web compatibility

    Easier maintenance

    Compliance with American Disabilities Act

    Language and Currency Translation

    Why follow standards?

  • 8/9/2019 Oracle Forms Brief)

    5/34

    5

    2003 Solution Beacon, LLC. All Rights Reserved.

    Development environment is Applications Release11i/Forms 6i

    You are familiar with Forms Builder 6i

    Your custom application and schema have been builtand registered

    Assumptions/Scope

  • 8/9/2019 Oracle Forms Brief)

    6/34

    6

    2003 Solution Beacon, LLC. All Rights Reserved.

    Download from $AU_TOP/forms/US

    TEMPLATE.fmbAPPSTAND.fmb

    Getting Started

  • 8/9/2019 Oracle Forms Brief)

    7/34

    7

    2003 Solution Beacon, LLC. All Rights Reserved.

    Provide visual and behavioral attributes for objects

    Available for almost every object type

    Do not override inherited property class attributes!

    Property Classes

  • 8/9/2019 Oracle Forms Brief)

    8/34

    8

    2003 Solution Beacon, LLC. All Rights Reserved.

    Logical Order of Development

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

  • 8/9/2019 Oracle Forms Brief)

    9/34

    9

    2003 Solution Beacon, LLC. All Rights Reserved.

    Module

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Property class = Module

  • 8/9/2019 Oracle Forms Brief)

    10/34

    10

    2003 Solution Beacon, LLC. All Rights Reserved.

    Libraries

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Core

    App Specific

  • 8/9/2019 Oracle Forms Brief)

    11/34

    11

    2003 Solution Beacon, LLC. All Rights Reserved.

    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

    Libraries - Core

  • 8/9/2019 Oracle Forms Brief)

    12/34

    12

    2003 Solution Beacon, LLC. All Rights Reserved.

    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

    Libraries Application Specific

  • 8/9/2019 Oracle Forms Brief)

    13/34

    13

    2003 Solution Beacon, LLC. All Rights Reserved.

    Triggers

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Required

    Restricted

    Optional

  • 8/9/2019 Oracle Forms Brief)

    14/34

    14

    2003 Solution Beacon, LLC. All Rights Reserved.

    PRE-FORM must be modified

    Triggers - Required

  • 8/9/2019 Oracle Forms Brief)

    15/34

    15

    2003 Solution Beacon, LLC. All Rights Reserved.

    STANDARD_ATTACHMENTS ZOOM FOLDER_ACTION KEY-HELP KEY-EXIT

    KEY-EDIT KEY-COMMIT WHEN-WINDOW-CLOSED CLOSE_WINDOW

    Dont Touch This!

  • 8/9/2019 Oracle Forms Brief)

    16/34

    16

    2003 Solution Beacon, LLC. All Rights Reserved.

    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

    Triggers - Optional

  • 8/9/2019 Oracle Forms Brief)

    17/34

    17

    2003 Solution Beacon, LLC. All Rights Reserved.

    Window

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Modal

    Non-Modal

  • 8/9/2019 Oracle Forms Brief)

    18/34

    18

    2003 Solution Beacon, LLC. All Rights Reserved.

    Property class = WINDOW_DIALOGCenter window usingAPP_WINDOW.SET_WINDOW_POSITIONExplicitly write code to close the windowCode OK and Cancel buttons in advance

    Use dialog blocks with property class =BLOCK_DIALOG

    Disable key triggers

    Modal Windows

  • 8/9/2019 Oracle Forms Brief)

    19/34

    19

    2003 Solution Beacon, LLC. All Rights Reserved.

    Property class = WINDOWEach window should contain one logical entityDo not attach scroll bars to windowsSize between 2x2 and 7.8w x 5.0hSize only as large as necessary

    No text on top and bottom linesBlank left and right edge character cell except forboundary lines

    Unique title for each window in a form

    Non-Modal Windows

  • 8/9/2019 Oracle Forms Brief)

    20/34

    20

    2003 Solution Beacon, LLC. All Rights Reserved.

    Canvases

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Basics

    Ruler

  • 8/9/2019 Oracle Forms Brief)

    21/34

    21

    2003 Solution Beacon, LLC. All Rights Reserved.

    Property class = CANVAS, TAB_CANVAS orCANVAS_STACKED

    Each window contains one content canvas

    Tab or stacked canvases may be placed in front of acontent canvas

    Utilize tabs to avoid scrolling

    Canvas - Basics

  • 8/9/2019 Oracle Forms Brief)

    22/34

    22

    2003 Solution Beacon, LLC. All Rights Reserved.

    Ruler Settings

    Canvas - Ruler

    Turn snap to grid on in the View drop down

  • 8/9/2019 Oracle Forms Brief)

    23/34

    23

    2003 Solution Beacon, LLC. All Rights Reserved.

    Data Blocks

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Basics

    Items

    ADA I tems

  • 8/9/2019 Oracle Forms Brief)

    24/34

    24

    2003 Solution Beacon, LLC. All Rights Reserved.

    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 recordindicator

    Data Blocks - Basics

  • 8/9/2019 Oracle Forms Brief)

    25/34

    25

    2003 Solution Beacon, LLC. All Rights Reserved.

    Enable the calendar for every date fieldENABLE_LIST_LAMPCall calendar_show from KEY-LISTVAL

    Control valid datesValidate from List = Yes for items with LOVs

    Maximum size = size of database columnCheck boxes always have a default valueButtons belong to the block in which they appear tosit.

    Base LOVs on views

    Data Block - Items

  • 8/9/2019 Oracle Forms Brief)

    26/34

    26

    2003 Solution Beacon, LLC. All Rights Reserved.

    Specify access keys for text buttons using &Specify access keys for non-navigable option buttonsSpecify access keys for check boxes

    Enter hint text for itemsOptionally enter tooltip helpPrompts are read in the following order:

    Hint Text Prompt

    Label Tooltip help

    Data Block - ItemsCompliance with American Disabilities Act

  • 8/9/2019 Oracle Forms Brief)

    27/34

    27

    2003 Solution Beacon, LLC. All Rights Reserved.

    Layout

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code

    Regions

    Tabs

    Items

  • 8/9/2019 Oracle Forms Brief)

    28/34

    28

    2003 Solution Beacon, LLC. All Rights Reserved.

    Layout - Regions

    Scroll Bar

    CoordinationCheck Box

    CurrentRecordIndicator

    StackedAlignment

    Region Frame

  • 8/9/2019 Oracle Forms Brief)

    29/34

    29

    2003 Solution Beacon, LLC. All Rights Reserved.

    Tab Pages

    Layout - Tabs

    1 character cell

    One

    Line

  • 8/9/2019 Oracle Forms Brief)

    30/34

    30

    2003 Solution Beacon, LLC. All Rights Reserved.

    Items The leftmost button in the window should be thedefault unless it is a help button. Allow 30% additional text space for languagetranslation

    Set alignment to startTabbed regions

    One character space between fixed and alternatingregions Place coordination check box outside the tabbed

    regionNavigation: Left to right, top to bottom

    Layout - Items

  • 8/9/2019 Oracle Forms Brief)

    31/34

    31

    2003 Solution Beacon, LLC. All Rights Reserved.

    Additional Code

    Module

    Libraries

    Triggers

    Windows

    Canvases

    Data Blocks

    Layout

    Addl Code Use program units!

  • 8/9/2019 Oracle Forms Brief)

    32/34

    32

    2003 Solution Beacon, LLC. All Rights Reserved.

    Oracle Applications User Interface Standards forForms-Based Products

    Oracle Applications Developers Guide

    Oracle Applications System Administrators Guide

    Oracle Applications User Guide

    Other Sources of Information

  • 8/9/2019 Oracle Forms Brief)

    33/34

    33

    2003 Solution Beacon, LLC. All Rights Reserved.

    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!

    Summary

  • 8/9/2019 Oracle Forms Brief)

    34/34

    34

    2003 Solution Beacon, LLC. All Rights Reserved.

    Thank you!

    If you have any questions or comments please contact me:

    Susan Behn [email protected]

    For free R11i Tools please visit our website at:

    www.solutionbeacon.com