Reputation: 901
I have a data table on my xPage that shows e.g. 10 rows (repeat limit, rows="10"). How do I know what's the current page number when I navigate through the records by using pager?
After switching between pages I'd like to return back and open dataTable exactly on same page I left:
getComponent("dataTable1").gotoPage(<page number I save>)
Upvotes: 0
Views: 192
Reputation: 4471
I think the best route to get the behavior you want is to use the <xe:pagerSaveState/>
control from the ExtLib, which does the job of storing the state of a given pager and restoring it when you go back to the page. Brad Balassaitis has an example of how to use it here: http://xcellerant.net/2013/08/08/xpages-data-views-6-pager-save-state-control/
Upvotes: 2