Book Image

Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook

By : Andy Penver
Book Image

Oracle E-Business Suite R12 Integration and OA Framework 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. Oracle E-Business Suite is the most comprehensive suite of integrated, global business applications that enable organizations to make better decisions, reduce costs, and increase performance. The book will show you how to build different types of extensions with different toolsets. It will take you from start to finish with fully working examples.This book will show readers a wide variety of step-by-step examples of how to extend Oracle E-Business Suite Release 12 in a number of areas. The book focuses on OA Framework personalization and development, WebADI, and BI Publisher. It will take readers through the process of how to get started and what tools are needed. It will explain how to develop working examples and how to deploy them within Oracle E-Business Suite Release 12. Learn how to extend Oracle E-Business Suite (EBS) Release 12, using detailed examples to work through how various components are configured and how we can extend standard functionality. The book focuses on OA Framework personalization and development, desktop integration (formerly WebADI), and BI Publisher and each chapter will introduce the topic before going through working examples from start to finish. There are plenty of detailed illustrations throughout each chapter giving clear instructions of what we are doing and why. Each topic will develop a solution that will utilize common core components of a subject area. It 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 (15 chapters)
Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding a validation to the page


We are now going to add some validation to the create society page. We can add validation by adding code to the setter methods in the entity object class. In the following example, we are going to validate that a date entered in the dateStart field is greater than the current date.

How to do it...

To add a validation to the page, perform the following steps:

  1. Right-click on EmpSocietyEO in Applications Navigator.

  2. Select Go to Entity Object Class from the pop-up menu and scroll down to the setDateStart method, as shown in the following screenshot:

  3. Add the following code before the setAttributeInternal line.

    1. In the following screenshot we check to see if the value in the Start Date field has been entered.

    2. If there is a value, that is, the field is not null, we store the date in a variable called startDate.

    3. We store the current date in a variable called todaysDate.

    4. Finally, we check if the start date is less than today's date. If the condition is true, we will raise an...