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