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:
- Right-click on EmpSocietyEO in Applications Navigator.
- Select Go to Entity Object Class from the pop-up menu and scroll down to the
setDateStartmethod, as shown in the following screenshot:
- Add the following code before the
- In the following ...