Apps Developer guide

  • Published on
    02-Dec-2015

  • View
    44

  • Download
    1

Embed Size (px)

DESCRIPTION

Apps Developer guide

Transcript

  • Oracle ApplicationsDeveloper's GuideRelease 12Part No. B31458-01

    December 2006

  • Oracle Applications Developer's Guide, Release 12

    Part No. B31458-01

    Copyright 1995, 2006, Oracle. All rights reserved.

    Primary Author: Mildred Wang, Sara Woodhull

    Contributing Author: Eric Bing, Anne Carlson, Steven Carter, Mark Fisher, Cliff Godwin, Bob Lash, Michael Mast, Tom Morrow, Robert Nix, Emily Nordhagen, Lisa Nordhagen, Gursat Olgun, Jan Smith, Dana Spradley, Susan Stratton, Leslie Studdard, Martin Taylor, Venkata Vengala, Peter Wallack, Aaron Weisberg, Maxine Zasowski

    The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, ordecompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited.

    The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose.

    If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable:

    U.S. GOVERNMENT RIGHTSPrograms, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987). Oracle Corporation, 500 Oracle Parkway, Redwood City, CA 94065.

    The Programs are not intended for use in any nuclear, aviation, mass transit, medical, or other inherently dangerous applications. It shall be the licensee's responsibility to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of such applications if the Programs are used for such purposes, and we disclaim liability for any damages caused by such use of the Programs.

    The Programs may provide links to Web sites and access to content, products, and services from third parties. Oracle is not responsible for the availability of, or any content provided on, third-party Web sites. You bear allrisks associated with the use of such content. If you choose to purchase any products or services from a third party, the relationship is directly between you and the third party. Oracle is not responsible for: (a) the qualityof third-party products or services; or (b) fulfilling any of the terms of the agreement with the third party, including delivery of products or services and warranty obligations related to purchased products or services.Oracle is not responsible for any loss or damage of any sort that you may incur from dealing with any third party.

    Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

  • iii

    Contents

    Send Us Your Comments

    Preface

    1 Overview of Coding StandardsOverview of Coding Standards.................................................................................................1-1The Standard Development Environment................................................................................1-5Overview of Building an Application.................................................................................... 1-11

    2 Setting Up Your Application FrameworkOverview of Setting Up Your Application Framework........................................................... 2-1

    3 Building Database ObjectsOverview of Building Your Database Objects......................................................................... 3-1Table Registration API.............................................................................................................. 3-9

    4 Using PL/SQL in Oracle ApplicationsOverview of Using PL/SQL in Applications............................................................................ 4-1Replacements for Oracle Forms Built-ins............................................................................... 4-10Coding Item, Event and Table Handlers................................................................................ 4-13

    5 Setting the Properties of Container ObjectsSetting the Properties of Container Objects............................................................................. 5-1Modules..................................................................................................................................... 5-1Windows.................................................................................................................................... 5-2

  • iv

    Canvases ................................................................................................................................... 5-5Blocks......................................................................................................................................... 5-6Regions ................................................................................................................................... 5-13

    6 Setting the Properties of Widget ObjectsSetting the Properties of Widget Objects................................................................................. 6-1Text Items.................................................................................................................................. 6-1

    Date Fields........................................................................................................................... 6-2Display Items ............................................................................................................................ 6-3Poplists ......................................................................................................................................6-4Option Groups .......................................................................................................................... 6-5Check Boxes .............................................................................................................................. 6-5Buttons ...................................................................................................................................... 6-5Lists of Values (LOVs) ............................................................................................................. 6-7

    LOV Behaviors..................................................................................................................... 6-8LOVs in ENTER-QUERY Mode......................................................................................... 6-10

    Alerts ....................................................................................................................................... 6-10Editors ..................................................................................................................................... 6-11Flexfields .................................................................................................................................6-11Setting Item Properties............................................................................................................ 6-11

    Using APP_ITEM_PROPERTY.SET_PROPERTY.............................................................. 6-11Item Properties with Unique Oracle Applications Behavior.............................................. 6-12Impact of Item-level and Item-instance-level Settings ...................................................... 6-16Setting Properties at Design Time...................................................................................... 6-16Setting Visual Attributes Programmatically...................................................................... 6-16

    7 Controlling Window, Block, and Region BehaviorControlling Window Behavior.................................................................................................. 7-1Positioning Windows Upon Opening...................................................................................... 7-1Closing Windows...................................................................................................................... 7-2Setting Window Titles Dynamically........................................................................................ 7-4Controlling Block Behavior...................................................................................................... 7-4Coding Master-Detail Relations............................................................................................... 7-4Coordination Between Windows.............................................................................................. 7-5Implementing a Combination Block........................................................................................ 7-6Coding Tabbed Regions.........................