0% found this document useful (0 votes)
287 views

VO Row Iterator in Oaf

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.

Uploaded by

suri2221
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
287 views

VO Row Iterator in Oaf

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.

Uploaded by

suri2221
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

VO Row Iterator in Oaf

//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");
}

You might also like