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
Post a Comment