vo. setattribute in oaf
In this post , We will discuss about vo. setattribute in oaf. vo. setattribute is uses to set or assign the value to View Object Attribute or columns. Here below I will share the sample code for vo. setattribute in oaf in which we will assign the value to the View Object columns.
Sample code of vo. setattribute in oaf
OAViewObject SupsVO = (OAViewObject)am.findViewObject(""XXSupLovVO1"");
if (SupsVO != null)
//Check for null
SupsVO.reset();
//It will take you to the first row of Vo
while ( SupsVO.hasNext())
{
XXXRowImpl currow = (xxxVORowImpl)SupsVO .next();
string firstAttr = currow.getAttribute("Attr1");
string NewValue = firstAttr + 'OAF';
currow.setAttribute("Sal", NewValue);
string SecondAttr =emacurrow.getAttributes("Attr2));
}
0 comments:
Post a Comment