Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Validate Date Less than Sysdate

Sahar HassanFeb 20 2012 — edited Feb 20 2012
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
This post has been answered by Arunkumar Ramamoorthy-Oracle on Feb 20 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2012
Added on Feb 20 2012
2 comments
1,358 views