Tuesday 14 August 2018

vo.reset in oaf

vo.reset in oaf

In this post , We will discuss about vo.reset function of the OAF View Object (VO). This Function helps to reset the View Object query. If we want to go first row of the VO then we just need to execute this function for the VO and then system will start execute the View Object from the First Row. This will sent the control of the cursor back to the first row of the View Object. Here below I am sharing the sample script for vo.reset in oaf.
 
 

Sample code of vo.reset in oaf

 
OAApplicationModule oam = pageContext.getApplicationModule(webBean);
      OAViewObject vo = (OAViewObject)oam.findViewObject("XXSUPVO");

        if (vo != null)

        //Check for null

            vo.reset();

         //It will take you to the first row of Vo

        while (vo.hasNext())
        {

        XXXRowImpl currow = (xxxVORowImpl)vo.next();
         validatelogic (currow.getAttribute("Attr1"),currow.getAttributes("Attr2));
        //so this will check for every row of  a View Object
        }

 

0 comments:

Post a Comment

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

Name

Email *

Message *