Thursday 25 February 2016

How to get multiple rows of selected :

public void getMultipleRowsSelected(){

testVOImpl billvo=(testVOImpl)gettestVO1();

String lnstrref=null;
ArrayList errorMsg= new ArrayList();
 Row billRows[] = billvo.getFilteredRows("selected", "Y");
 if(billRows.length >0){
  for (int b = 0; b < billRows.length; b++) {
                    testVORowImpl brow = (testVORowImpl)billRows[b];
                                     if(brow.getStatusFlag().equalsIgnoreCase("D")){
                                     
                                      }else{
OAException errmessage =new OAException(" please check the status of "+brow.getsomeId(),OAException.ERROR);
                                      errorMsg.add(errmessage);
                                      }
                                     }
}

                if(errorMsg.size()>0){
OAException.raiseBundledOAException(errorMsg);

                }              
 }

No comments:

Post a Comment