Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook

You're reading from   Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook A practical step-by-step guide to develop end-to-end extensions to Oracle E-Business Suite Release 12, with detailed illustrations and explanations

Arrow left icon
Product type Paperback
Published in Mar 2013
Publisher Packt
ISBN-13 9781849687126
Length 398 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Andy Penver Andy Penver
Author Profile Icon Andy Penver
Andy Penver
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Personalizing OA Framework Pages FREE CHAPTER 2. Getting Started with OA Framework Pages 3. Creating a Master Detail Page in OA Framework 4. Adding a Creation Page and LOV Region in OA Framework 5. Advanced OA Framework 6. BI Publisher 7. Desktop Integration 8. Utilities 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime