1 2 Previous Next 15 Replies Latest reply: Apr 30, 2012 7:32 AM by Manish Go to original post RSS
      • 15. Re: how can i programatically update row
        Mohammad Jabr
        I think it is already set when the user logged in. Isn't it?
        protected void prepareForDML(int i, TransactionEvent aTransactionEvent)
                {
                    if (i != EntityImpl.DML_DELETE)
                           {
                              
                             ViewObjectImpl vo = (ViewObjectImpl)this.getDBTransaction().findViewObject("payemptaskVo"); 
                       vo.setNamedWhereClauseParam("empcd", 10); //set the bind variable with your value
                             vo.executeQuery();
                             Row row = vo.first();
                             setAttribute ("hier", row.getAttribute("hierarchy");
                            ........
                            ........
                    
                           }
                           super.prepareForDML(i, aTransactionEvent);
                           
                           
                }
        1 2 Previous Next