Validate Date Less than Sysdate
I would like to validate Hiredate attribute of my EmployeesEO entity object for which it should not take a date which is greater than sysdate.
I wrote this Groovy script on the Edit Validation Rule dialog of EmployeesEO. But it seems not working:
//perform validation
if(Hiredate > DBTransaction.currentDbTime){
adf.error.raise("DATE_GREATERTHAN_SYSDATE_ERROR")
return false
}
return true
I am using JDeveloper Studio Edition Version 11.1.1.5.0 and ADF BC.
Please help.
Edited by: Sahar Hassan on 20 Feb, 2012 1:36 AM