Friday, November 23, 2012

VO Iterator in Oaf rows

Here am sharing a sample code to iterate in vo
       //Create a object with name vo for the ViewInstance
        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();
        //it will return a rows in a order
        //now we can use currow.getAttributes,currow.setAttributes
         //for implementing our logic as shown below
         validatelogic (currow.getAttribute("Attr1"),currow.getAttributes("Attr2));
        //so this will check for every row of  a View Object
        }

1 comment:

Unknown said...

can you please help me out
i have an issue i have to create five black row from particular vo and all other data will not shown in that page only that five particular blank row will display