I have an xpage with a repeater/table displaying the contents of a view and a pager attached to it as well. Since I’m using a repeater and not an actual view object there’s no built in method (that I can find) for making a particular column sortable. So to give it sortabability I made a column title a link and in the onClick event added server side javascript calling the resortView method, passing the name of the column to sort the view by. Works great.
The problem though is that the attached pager functionality does not work correctly with the resorted view. When clicking to advance the pager instead of showing the next page based on the newly sorted values of the view it instead advances to the next page based on the original default sorting for the view - so you don’t see the records that should be displayed based on the resorting action.
So, is there any way to get the pager to function correctly with the resorted view? Or, alternatively, is there another method to allow the column headers to be clickable hotspots for sorting that will work correctly with the pager?