This document discusses how to iterate through rows in an Oracle Application Framework (OAF) view object (VO) and access attribute values. It shows creating a PayGrpGroupVO view object instance, resetting it to the first row, then using a while loop to iterate as long as there is a next row. On each iteration, it gets the current row as an OARow and can then get or set attribute values on that row.
This document discusses how to iterate through rows in an Oracle Application Framework (OAF) view object (VO) and access attribute values. It shows creating a PayGrpGroupVO view object instance, resetting it to the first row, then using a while loop to iterate as long as there is a next row. On each iteration, it gets the current row as an OARow and can then get or set attribute values on that row.
This document discusses how to iterate through rows in an Oracle Application Framework (OAF) view object (VO) and access attribute values. It shows creating a PayGrpGroupVO view object instance, resetting it to the first row, then using a while loop to iterate as long as there is a next row. On each iteration, it gets the current row as an OARow and can then get or set attribute values on that row.
This document discusses how to iterate through rows in an Oracle Application Framework (OAF) view object (VO) and access attribute values. It shows creating a PayGrpGroupVO view object instance, resetting it to the first row, then using a while loop to iterate as long as there is a next row. On each iteration, it gets the current row as an OARow and can then get or set attribute values on that row.
//Create a object with name PayGrpGroupVO for the ViewInstance PayGrpGroupVO1
OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean); OADBTransaction oadbtransaction = am.getOADBTransaction(); OAViewObject PayGrpGroupVO = (OAViewObject)am.findViewObject("PayGrpGroupVO1"); if (PayGrpGroupVO!= null) //Check for null PayGrpGroupVO.reset(); //It will take you to the first row of Vo
while (PayGrpGroupVO.hasNext()) { OARow PayGrpGroupVORow = (OARow)PayGrpGroupVO. next (); //now we can use PayGrpGroupVORow.getAttributes, PayGrpGroupVORow.setAttributes //for implementing our logic as shown below String PayGroupCodeFormValue=(String)PayGrpGroupVORow.getAttribute("DisplayedField "); PayGrpGroupVORow.setAttribute("DisplayedField","BIP"); }