Access rows through Check box in OAF

 Here is the code snippet for accessing rows through check box in OAF



  OAViewObject oaviewobject (OAViewObject)pageContext.getApplicationModule(webBean).findViewObject("XXOrderLinVO1");

             Row[] CheckedRowSet = oaviewobject.getFilteredRows("CheckBox", "Y");

             if (CheckedRowSet != null && CheckedRowSet.length > 0)

             {

             

               for (int i = 0; i < CheckedRowSet.length; i++)

               {

  XXOrderLinVORowImpl ChksourceRow = (XXOrderLinVORowImpl )CheckedRowSet[i];

System.out.println("Checked Records Header Id"+ChksourceRow.getAttribute("HeaderId"));

System.out.println("Checked Records OrderNumber "+ChksourceRow.getAttribute("OrderNumber"));

 System.out.println("Checked Records LineNumber"+ChksourceRow.getAttribute("LineNumber"));               

               }

Comments

Popular posts from this blog

Sample HZ API's script to Create Contacts and Contact Points in Oracle

REST integration built-in OIC to read Large files with size more than 10MB