Skip to content

Instantly share code, notes, and snippets.

range paged browsing
public void selectAll(ActionEvent actionEvent) {
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItr = bindings.findIteratorBinding("CustomQueryBasedIterator");
ViewObjectImpl viewObj = (ViewObjectImpl)dcItr.getViewObject();
int rangePageCount = viewObj.getEstimatedRangePageCount();
for ( int pageNo = 1 ; pageNo <= rangePageCount ; pageNo++ ){
viewObj.scrollToRangePage(pageNo);
Row[] rowsInCurrentPage = viewObj.getAllRowsInRange();
for(Row row : rowsInCurrentPage ){
//TODO whatever operation you want to do
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment