Tuesday, September 11, 2012

Performing Row Iteration in Contoller


   
  OAApplicationModule am1;
        OAWebBean oawebbean1 =
            webBean.findIndexedChildRecursive("ScorecardObjectivesRN");
        am1 = pageContext.getApplicationModule(oawebbean1);
        OAViewObject ScorecardObjectivesVO;
        ScorecardObjectivesVO =
                (OAViewObject)am1.findViewObject("ScorecardObjectivesVO");
        Row row[] = ScorecardObjectivesVO.getAllRowsInRange();
        for (int i = 0; i < row.length; i++) {
            ScorecardObjectivesVORowImpl sbrow =
                (ScorecardObjectivesVORowImpl)row[i];
            String groupCode = sbrow.getGroupCode();
            if (groupCode.equals("BO")) {
//Enter Your Code
            } else {
//Enter Else Part
            }

        }

No comments:

Post a Comment