Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Oracle E-Business Suite R12 Core Development and Extension Cookbook
Oracle E-Business Suite R12 Core Development and Extension Cookbook

Oracle E-Business Suite R12 Core Development and Extension Cookbook: Building extensions in Oracle E-Business Suite is greatly simplified when you follow the step-by-step instructions in this book. Whether novice or pro, this is a great tutorial with over 60 recipes and stacks of screenshots.

Arrow left icon
Profile Icon Andy Penver
Arrow right icon
zł39.99 zł212.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook May 2012 480 pages 1st Edition
eBook
zł39.99 zł212.99
Paperback
zł266.99
Subscription
Free Trial
Arrow left icon
Profile Icon Andy Penver
Arrow right icon
zł39.99 zł212.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
eBook May 2012 480 pages 1st Edition
eBook
zł39.99 zł212.99
Paperback
zł266.99
Subscription
Free Trial
eBook
zł39.99 zł212.99
Paperback
zł266.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Oracle E-Business Suite R12 Core Development and Extension Cookbook

Chapter 2. Oracle Forms

In this chapter, we will cover:

  • Using forms builder for E-Business Suite

  • Installing the database objects

  • Getting started with forms

  • Creating a master block and container objects

  • Modifying the template code

  • Adding a detail block to a form

  • Adding insert, update, and delete events

  • Deploying forms

  • Adding buttons, list, and checkbox items

  • Adding a query screen to a form

  • Passing parameters to a form

Introduction

The E-Business Suite (EBS) user interface developed with Oracle Forms Builder is known as the Professional User Interface. The core modules have all been built using this development tool. However, the user interface for new modules is now developed using JDeveloper and is known as the Self Service User Interface.

Oracle provides a TEMPLATE form to get us started with developing forms. It has some referenced objects that allow us to develop forms in a consistent manner using the same standards and look and feel as all of the other forms within EBS. The referenced objects...

Introduction


The E-Business Suite (EBS) user interface developed with Oracle Forms Builder is known as the Professional User Interface. The core modules have all been built using this development tool. However, the user interface for new modules is now developed using JDeveloper and is known as the Self Service User Interface.

Oracle provides a TEMPLATE form to get us started with developing forms. It has some referenced objects that allow us to develop forms in a consistent manner using the same standards and look and feel as all of the other forms within EBS. The referenced objects contain property classes and visual attributes, the standard toolbar, and the standard calendar. It also comes with code already written in triggers and program units. These help us to provide hooks to events that occur at runtime. This in turn ensures that any forms developed using the TEMPLATE.fmb conforms to Oracle standards and behaviors. Also, it makes it much easier for developers knowing that forms...

Using forms builder for E-Business Suite


We are going to briefly look at forms builder before we start developing a new form. E-Business Suite does not use some features of the forms developer IDE such as alerts or reports. There are also some functions in EBS that replace some of the standard Oracle Forms built-ins. We will look at some of these in the coming chapters. Let's start by looking at the interface and discussing the features that need to be highlighted before we get started. The following screenshot shows us the forms developer once we have opened the TEMPLATE form:

We will discuss the IDE and the features available before we get going:

  1. 1. Module: We need to change its properties from TEMPLATE to the name of our form. The name must be the same as the name of the form. We always need to set the property class (Subclass Information) to MODULE. We also need to set the Console Window and the First Navigable Block properties.

  2. 2. Triggers: The form level Triggers come with some code...

Installing the database objects


Create the database objects for this chapter before you start by using a script provided called 4842_02_01.sh. We are going to create a table, a view, and a synonym for the new block we will create. We will also create a package that will handle all of the database transactions such as insert, update, and delete. Finally, we will create a sequence that will be used to generate a unique number for new records. The following recipe provides details of how to run the script.

How to do it...

To create the database objects required for this chapter, perform the following tasks:

  1. 1. Create a local directory c:\packt\scripts\ch2 where the scripts are downloaded and extracted to.

  2. 2. Open Putty and connect to the application tier user.

  3. 3. Create a new directory on the application tier under $XXHR_TOP/install using the following commands:

    cd $XXHR_TOP/install
    mkdir ch2
    
    
  4. 4. Navigate to the new directory cd ch2 using the following command:

    cd ch2
    
    
  5. 5. Open WinSCP and FTP the...

Getting started with forms


In this recipe, we are going to look at getting everything started so that we can build forms to be used in E-Business Suite. We are going to be using Oracle Forms Builder version 10g and we are also going to be using WinSCP.

In this recipe, we are going to perform the following tasks:

  • Installing Oracle Developer Suite

  • Creating the forms builder desktop shortcut

  • Adding a TNS names entry

  • Setting runtime parameters in the environment file

  • FTP forms and libraries

  • Opening the TEMPLATE form

  • Renaming the TEMPLATE form

Installing Oracle Developer Suite

We need to install Oracle Developer Suite on our local PCs. We can develop the forms locally but will need to transfer the forms over to the application server and compile them there to run the form in the application. We will look at deploying and testing the forms later on but for now we will install the development tool.

How to do it...

To install the Oracle Developer Suite, perform the following steps:

  1. 1. Create three directories...

Creating a master block and container objects


In this recipe, we are going to start on the basics of a master detail form. There are several tasks that we will need to do:

  • Creating a block using the block wizard

  • Setting the block properties

  • Setting the item properties

  • Setting the canvas properties

  • Setting the window properties

  • Setting the module properties

  • Creating a dummy item

  • Removing unwanted objects

  • Renaming prompts

  • Resizing the viewport

We have already created two views to base our form on at the beginning of this chapter. The views are called XXHR_PERMGR_DETAILS_V and XXHR_PERSON_DETAILS_V. It is always better to base the block on a view, especially for more complex blocks that use multiple tables. There are several reasons for this; for example, it will reduce network traffic and we will not need to write PRE and POST trigger code for non-database fields.

Creating a block using the block wizard

We will first create the master block for the societies form using the block wizard.

How to do it....

Modifying the template code


In this recipe, we are going to modify the code in the TEMPLATE.fmb form. There are certain triggers that need to be modified when creating a new form. The shell is there, we just need to modify the code to make the form function properly. We need to modify code in the following objects:

  • Modifying the PRE-FORM trigger

  • Modifying the WHEN-NEW-FORM-INSTANCE trigger

  • Modifying the APP_CUSTOM procedure

Modifying the PRE-FORM trigger

The PRE-FORM trigger stores version information about the form and it also dictates the first window of the form.

How to do it...

To modify the PRE-FORM trigger, perform the following tasks:

  1. 1. Navigate to the form level PRE-FORM trigger and open it.

  2. 2. Make the following changes to the FND_STANDARD.FORM_INFO parameters:

    • Change the $Revision: number to 120.1 (change this each time a new version of the form is released)

    • Change the $Date: to the current date

    • Change the $Author: to your current username

  3. 3. Change the first parameter in the call to the...

Adding a detail block to a form


We are now ready to create a detail block to our form. The detail block is going to store information relating to societies the employee belongs to. The block is a detail block to the PERMGR_DTLS block we have already created. The foreign key is the PERSON_ID. In this recipe, we are going to perform the following tasks:

  • Creating a lookup

  • Creating a detail block

  • Setting the block properties

  • Setting the item properties

  • Creating a relationship between the master and detail blocks

  • Adding a record indicator to the block

Note

The following recipe assumes that you have created a custom schema called XXHR. If you do not have a custom schema, follow the recipe in Chapter 6, Utilities called Creating a custom schema. We have registered the custom application in Chapter 1, Creating Concurrent Programs but we need to create the directory structure on the applications tier. This is where we need to put our custom form.

We have already created a table called XXHR_PER_SOCIETIES...

Adding insert, update, and delete events


Now that we have created the forms objects, it is time to start adding some code. We need to add code to perform inserts, updates, and deletes. As we have based the form on views, we need to trigger the events and then we need to write code to call database procedures to transact data. There are four triggers we need to create on each block where we need to perform transactions. In this example, the only block where we want to do any transactions is the PER_SOCIETIES block. When we insert data, we will also need to increment a sequence number for the SOCIETY_ID column. We will need to perform the following tasks to trigger and code database transactions within our form:

  • Creating a program unit package specification

  • Creating a program unit package body

  • Creating ON-INSERT, ON-UPDATE, ON-DELETE, and ON-LOCK triggers

  • Creating PRE-INSERT and PRE-UPDATE triggers to set the WHO columns

We have created a sequence as we need to generate a unique SOCIETY_ID before...

Deploying forms


Now we have created the form, we should test it. We cannot run the form locally on our PC, so we need to transfer it to the application tier and compile it. We also need to register the form and create a function for it. Then we can add the function to a menu. In this recipe, we are going to perform the following tasks:

  • Registering a form

  • Creating a function that calls a form

  • Adding a form to a menu

  • FTP the form to the application tier

  • Compiling a form

  • Testing a form

Registering a form

Before we can run the form, it needs to be registered in the application.

How to do it...

To register the form, perform the following tasks:

  1. 1. Log in to Oracle and select the Application Developer responsibility.

  2. 2. Navigate to Application | Form and the Forms window will open.

  3. 3. Add a record with the following data:

    Item name

    Item value

    Form

    XXHRSOCC

    Application

    XXHR Custom Application

    User Form Name

    Clubs and Societies Form

    Description

    Clubs and Societies Form

    • The screen should...

Adding buttons, list, and checkbox items


Now that we have created the form and it is running, we want to add some buttons and change the types of fields that we have created in the form. In this recipe, we are going to perform the following tasks:

  • Adding OK and Cancel buttons

  • Modifying the layout

  • Adding triggers to the buttons

  • Creating an LOV for the society name field

  • Configuring the date fields

  • Creating a list item

  • Creating a checkbox item

  • Testing the form

Adding OK and Cancel buttons

We are going to add two buttons. We will add an OK button which will save and exit the form. We will also add a Cancel button which will exit the form without performing any validation. We are going to add the buttons to the PERMGR_DTLS block.

How to do it...

To add buttons to our form, perform the following tasks:

  1. 1. In the forms developer, navigate to Data Blocks | PERMGR_DTLS | Items.

  2. 2. Click on the + button twice to add two new items.

  3. 3. Set the following properties of the first item:

    • Name: OK_BTN

    • Subclass Information...

Adding a query screen to a form


As part of the TEMPLATE form, we get a standard mechanism to create a query screen. This usually is the first screen that is present when the form opens if no data is passed to the form via parameters. This allows the user to search for specific records. In our form, we want to create a query form that allows us to search for an employee. We want the user to be able to search by their name or their employee number. There are a number of steps required to implement a QUERY_FIND window. In this recipe, we are going to perform the following tasks:

  • Adding code to the WHEN-NEW-FORMS-INSTANCE trigger

  • Copying the QUERY_FIND object group

  • Setting the block, canvas, and window properties

  • Editing the button triggers on the QUERY_FIND block

  • Creating items in the query block

  • Resizing the objects on the canvas

  • Creating a PRE-QUERY trigger

  • Creating a QUERY_FIND trigger

Adding code to the WHEN-NEW-FORMS-INSTANCE trigger

Firstly, we are going to add some code to the WHEN-NEW-FORM-INSTANCE...

Passing parameters to a form


We can pass parameters to a form to pass data that can help us to perform actions based upon that data. In this case, we want to add a parameter which passes in the PERSON_ID. If the parameter is populated with a value, we do not want to call the query screen. In this recipe, we are going to perform the following tasks:

  • Creating a parameter

  • Bypassing the query find screen

  • Testing the form

  • Testing the form with the PERSON_ID parameter passed in

Creating a parameter

We are now going to create a parameter in our form so that we can pass PERSON_ID into the form. This will allow us to call the form from another form and automatically query back an employee record.

How to do it...

To create a parameter, perform the following tasks:

  1. 1. Navigate to Parameters in the Object Navigator.

  2. 2. Set the following parameter properties:

    • Name: P_PERSON_ID

    • Parameter Data Type: Number

How it works...

We can add as many parameters as we want in our form. They can be used to pass information...

Left arrow icon Right arrow icon

Key benefits

  • Gain key skills to extend Oracle E-Business Suite Release 12.
  • Build forms with advanced features and deploy them in the application
  • Create personalizations and understand how to modify functionality through them
  • Step by step examples guiding you through the development process

Description

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.

Who is this book for?

This book is written for individuals who want to learn how to develop extensions in Oracle E-Business suite. If you are involved in development or supporting an e-business suite implementation you should find this book very useful. The book is detailed so minimal technical expertise is required. It is suitable for beginners who have little experience or developers who may want to use the book to brush up on their skills.

What you will learn

  • Get an overview of the architecture of Release 12; learn about the file system and where files need to go.
  • Configure concurrent programs which launch executable programs such as a database package or a host program.
  • Understand how to write to a concurrent program log, and output files.
  • Add a query screen to forms and learn how to pass parameters.
  • Configure forms in E-Business Suite, create functions and add them to menus.
  • Create tabs and add code to control them. Create items with lookups, use widgets for date fields and add drop down lists.
  • Build a fully working form with most of the components you are ever likely to utilize.
  • Understand the personalization screen. Change properties to hide fields and move them around. Change labels and even alter a list of values.
  • Create personalizations to perform validation and display a message. Perform actions such as launching a form, adding items to menus or icons to toolbars.
  • Understand Oracle workflow and create a workflow that is triggered by a business event from an XML message on an advanced queue.
  • Build a workflow with functions, lookups, sub-processes and notifications.
  • Learn how to deploy a workflow and test it - viewing its status and monitoring progress.

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 11, 2012
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684859
Vendor :
Oracle
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 11, 2012
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684859
Vendor :
Oracle
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 824.97
Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook
zł246.99
Oracle E-Business Suite R12 Core Development and Extension Cookbook
zł266.99
Oracle E-Business Suite 12 Financials Cookbook
zł310.99
Total 824.97 Stars icon
Banner background image

Table of Contents

6 Chapters
Creating Concurrent Programs Chevron down icon Chevron up icon
Oracle Forms Chevron down icon Chevron up icon
Advanced Oracle Forms Chevron down icon Chevron up icon
Forms Personalization Chevron down icon Chevron up icon
Workflow Chevron down icon Chevron up icon
Utilities Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 50%
4 star 0%
3 star 50%
2 star 0%
1 star 0%
Sudeep Maity Jul 12, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author has thoroughly reproduced his experience and knowledge in the book.I must say that this book is a must have for the beginners.Though some important notes like OAF and BI Publisher are missing,the author mentions that he will cover it in the second book.I really appreciate you (Andy Penver) especially since I had a very tough time to get a hold on Oracle R12 fundamentals from a developer's point of view.There are a lot of materials on the internet but most of them are unstructured and you have to google again and again to get to the correct point.This book has a lot of diagrams with proper explanations and steps to configure them.Once again a heartily thanks to Andy Penver.I will be eagerly waiting for your second book :D
Amazon Verified review Amazon
Ricardo Maldonado Aug 18, 2012
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Good information. Some areas need more examples (or screenshots) and explanations. I recommend it as alearning tool. You will still need the complete reference books if you want more detailed explanations of certain areas or subjects.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.