0 Replies Latest reply: Nov 28, 2012 10:47 PM by 929077 RSS

    Code for set the attribute with sysdate

    929077
      OADBTransactionImpl oadbtr= (OADBTransactionImpl)oapagecontext.getRootApplicationModule().getOADBTransaction();
      Date sysdate = oadbtr.getCurrentDBDate();
      // vo.getCurrentRow().setAttribute("Attribute11",sysdate);


      OAViewObject oaviewobject = (OAViewObject)oapagecontext.getApplicationModule(oawebbean).findViewObject("CashAndOtherLinesVO");
      oaviewobject.reset();
      OARow oarow = (OARow)oaviewobject.next();

      while(oaviewobject.hasNext())
      {
      oarow.setAttribute("Attribute11",sysdate);
      }