I'm using JDeveloper 11.1.1.6.
One tricky issue we found is looping through a view object using RowSetIterator.
- next() of RowSetIterator never return null, it resets to first at the end
- This is for a certain view object only (we have another VO in the same page doing the same thing but works fine)
Below is the code:
DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
EmpVOImpl empVoImpl=(EmpVOImpl)bc.findIteratorBinding(
"EmpVO1Iterator"
).getViewObject();
RowSetIterator it = empVoImpl.getRowSetIterator(
);
EmpVORowImpl row = (EmpVORowImpl)it.first();
while
(row != null){
if
(row.getSal()!=
null
){
totalAmount=row.getSal().add(totalAmount);
}
row = it.next();
}
it.closeRowSetIterator();
My question is
- is this a bug? if is, already fixed in later version?
- what's the best practice for looping through a view object.
Thanks