Issue with iterating viewobject rows
Hi ,
I am applying an view criteria to a VO and trying to loop through the result row using below code.
When I use the getEstimatedRowCount() of the VO, i get the row count as 3. However when i loop through the vo, the last row returns null.
long rowCount = voDestinSearch.getEstimatedRowCount();
System.out.println(rowCount);
voDestinSearch.reset();
for (int count = 0; count <rowCount;count++){
if(rowCount==0){
searchRow = voDestinSearch.first();
}else{
searchRow = voDestinSearch.next();
}
if(searchRow != null){
al.add(searchRow);
}
}
Thanks
Ajay