How to Iterate throw view Object Programatically in ADF.
DCBindingContainer dcb= (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dit =dcb.findIteratorBinding("ViewObjectIterator");
ViewObject vo = (ViewObject)dit.getViewObject();
Row[] row = vo.getAllRowsInRange();
for(Row r : row){
System.out.println("r"+r.getAttribute("State"));
}
DCBindingContainer dcb= (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dit =dcb.findIteratorBinding("ViewObjectIterator");
ViewObject vo = (ViewObject)dit.getViewObject();
Row[] row = vo.getAllRowsInRange();
for(Row r : row){
System.out.println("r"+r.getAttribute("State"));
}
No comments:
Post a Comment