Created
June 24, 2016 19:50
range paged browsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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