Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
268 views1 page

VO Row Iterator in Oaf

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
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