Go to Entity Object
Open Date Attribute which you want to Deafult as Sysdate
Click Value Type as Expression.
Value adf.currentDate
For Timestamp adf.currentDateTime
import oracle.jbo.domain.Date;
..
protected Date getCurrentDate()
{
return new Date( Date.getCurrentDate());
}
import oracle.jbo.Domain.Date;
import java.sql.Timestamp;
..
protected Date getCurrentDateWithTime()
{
return new Date( new Timestamp( System.currentTimeMillis()));
}
http://abakalidis.blogspot.com/2007/02/oracle-adf-accessing-current-date-and.html
Date Validationshttp://mychanneladf.blogspot.com/2012/06/comparing-dates-and-displaying.htmlhttp://oracleanil.blogspot.com/2009/04/itemco.html
No comments:
Post a Comment