Wednesday, 15 August 2018

vo. setattribute in oaf

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

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *