Book Image

Oracle E-Business Suite R12 Core Development and Extension Cookbook

By : Andy Penver
Book Image

Oracle E-Business Suite R12 Core Development and Extension Cookbook

By: Andy Penver

Overview of this book

Oracle's suite of applications is used by many major businesses and public sector organizations throughout the world. The book will show you how to build different types of extensions with different toolsets with Oracle E-Business Suite R12. It will take you from start to finish with fully working examples. This book will show you how to extend Oracle E-Business Suite Release 12. You will learn highly desirable skills on how to extend the application and develop your expertise. The book will provide detailed information about why things have to be done in certain ways, and will take you through the process of how to get started, what tools are needed, how to develop working examples, and how to deploy them within the application. Learn how to extend Oracle E-Business Suite (EBS) Release 12. There are detailed examples to work through, such as how various components are configured and how we can extend standard functionality. The book focuses on core development and extension and each chapter will introduce a topic before going through working examples from start to finish. There are plenty of detailed screen shots throughout each chapter giving clear instructions of what we are doing and why. Each recipe will develop a solution that will utilize core components to that topic. The Oracle E-Business Suite R12 Core Development and Extension Cookbook focuses on starting an extension right from the beginning, to deploying it within E-Business Suite. At the end of each chapter the reader will have a good understanding of what they need to do for each area to take away, and start using it in practice. Each chapter will detail how to build an extension in the supported manner and also comes with complete fully tested code, and scripts that can be downloaded.
Table of Contents (12 chapters)
Oracle E-Business Suite R12 Core Development and Extension Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating triggers for flexfield events


Now we need to add some triggers to manage the Descriptive Flexfield. We are going to call the standard package to define the Descriptive Flexfield when a user enters the form. We are also going to add a WHEN-NEW-ITEM-INSTANCE trigger on the DESC_FLEX item to automatically pop up the DFF when a user navigates to the item. We will perform the following tasks:

  • Adding a WHEN-NEW-FORM-INSTANCE event

  • Adding a WHEN-NEW-ITEM-INSTANCE event

  • Testing the form

Adding a WHEN-NEW-FORM-INSTANCE event

Before we add the code to the WHEN-NEW-FORM-INSTANCE trigger we will write the code in the PER_SOCIETIES package to define the Descriptive Flexfield and then call the procedure from the trigger.

How to do it...

To add a WHEN-NEW-FORMS-INSTANCE trigger, perform the following steps:

  1. 1. In Forms Developer navigate to Program Units | PER_SOCIETIES | Package Spec.

  2. 2. Add a new procedure by adding the following code:

    PROCEDURE DESC_FLEX(event VARCHAR2);
    
  3. 3. Now open the PER_SOCIETIES...