Você está na página 1de 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");
}

Você também pode gostar