This discussion is archived
2 Replies Latest reply: Nov 10, 2013 10:44 PM by user13424229 RSS

issue with delete in oaf

user13424229 Explorer
Currently Being Moderated

Hi All,

I have a issue in delete functionality in oaf,

 

I have a advanced table having data when page loads, in that i have a delete icon, i am clicking delete icon and from the page i am able to delete that row but in data base it is not deleteting that row.

i tried in below way.

 

if ("updatedelete".equals(pageContext.getParameter(EVENT_PARAM))) 
           { 
            am.invokeMethod("getUpdateDeleteData",null);
              
             
           }

 

---------------

     public void getUpdateDeleteData()
         {
     XXXXXCONTAINLISTLINESVOImpl vo = this.getXXXXXCONTAINLISTLINESVO1();
    
         System.out.print("vo count"+vo.getRowCount());
    
     Row row[] = vo.getAllRowsInRange();
               for (int i=0;i<row.length;i++)
                             {
         XXXXXCONTAINLISTLINESVORowImpl rowi = (XXXXXCONTAINLISTLINESVORowImpl)row[i];
         if (rowi.getseltodel()!= null && rowi.getseltodel().equals("Y"))
         {

         rowi.remove();  
         getOADBTransaction().commit();
        

 

          }
     }

     }

Please help me out thanks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points