Friday, November 23, 2012

Filtering Rows in OAF

Hi
Some times if we have a check box in the table region and we need to some operation only for the checked rows then we need to filter the Rows of vo with that Check Box attribute

Here is a sample code for the same

OAViewObject  vo = (OAViewObject) getxxxVO1();
        xxxVORowImpl row = null;
       
        Row[] rows = vo.getFilteredRows("select","Y");
        //where select is the Vo attribute given for the check box in table region        
        for (int i=0;i       
            row = (xxxVORowImpl)rows[i];
          //using row.set and get attributes perform logic as show below           

        savelogic(row.getSupplierName,row.getSupplierId);
        }

No comments: