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!

Insert a current date

adrinaOct 1 2011 — edited Oct 3 2011
hI.,

I am using jdev11.1.5


My scenario:

When user clicks the button the values should be inserted

i had used this coding in my AMImpl Method
        ViewObjectImpl gjh  = this.getGlJrnlHd1();
        Row gjhr1 = gjh.getCurrentRow();
        Row gjhr = gjh.createRow();
        ViewObjectImpl rcdh = this.getRecCustDocHd1();
        Row rcdhr = rcdh.first();
        System.out.println ("Current Value:"+rcdh.first());
        gjhr.setAttribute("GjhAppl", "ARM");
        gjhr.setAttribute("GjhBu",rcdhr.getAttribute("RcdocBu") );
        gjhr.setAttribute("GjhCreBy", "ADMIN");
        gjhr.setAttribute("GjhCreDate", "07/07/2010");
        gjhr.setAttribute("GjhDesc","Manuall");
        gjhr.setAttribute("GjhJrnlDate", rcdhr.getAttribute("RcdocDocDate"));
        gjhr.setAttribute ("GjhJrnlNo","20111665");
        gjhr.setAttribute("GjhJrnlSfx", "0");
        gjhr.setAttribute("GjhJrnlType","GJ");
        gjhr.setAttribute("GjhPeriod", rcdhr.getAttribute("RcdocDocPeriod"));
        gjhr.setAttribute("GjhPlant", "MATPLNT");
        gjhr.setAttribute("GjhReversal", "N");
        gjhr.setAttribute("GjhRevJrnlNo", "20111241");
        gjhr.setAttribute("GjhRevJrnlSfx","N");
        gjhr.setAttribute("GjhStatus","N");
        gjhr.setAttribute("GjhUpdBy", "ADMIN");
        gjhr.setAttribute("GjhUpdDate", "07/07/2010"); //I need to insert the current date
        gjhr.setAttribute("GjhYear", rcdhr.getAttribute("RcdocDocYear"));
        this.getDBTransaction().commit();
Can anyone help me to insert the current date
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2011
Added on Oct 1 2011
4 comments
152 views