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:
    How to do it...
  3. Add the following code before the setAttributeInternal line.
    1. In the following ...

Get Oracle E-Business Suite R12 Integration and OA Framework Development and Extension Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.