I have a view on xpages and I used pager to display the document in several pages if list is more than 25. So if we have 100 document and view gets render, it will divide it into 4 pages and by default 1 page is selected.
Now let say if I got to 3rd page and open one of the document from the list, view the document and coming back to the view, it again take me to 1st page.
My question is that is there any way to let me redirect to the same view page from where i am opening the document. Other wise user are having problem and they again click to 3rd page link which is on the pager control.
If someone know kindly help me. I will be very thankful to you for your kind response. Also let me know if any more information required.
There are a few options. If you can identify the row number, you might be able to set the “first” attribute based on a sessionScope (based on the viewName obviously). I haven’t tried it though, so cannot guarantee.
From 8.5.2 there is the startKey attribute, which you could pick up on the opeing of the document.
According to the overview video, the Data View control in the XPages Extension Library keeps the view context (current page, expanded page) without any additional functionality. However, again that requires 8.5.2 and the Extension Library installing on the servers and Notes Clients, if you’re using XPages in Notes Client.
And I always set the viewPanel to partial refresh = true as well. Not sure you need this in addition to get the pager to go back to where you where when you opened the document, but I’ve found when I have both of these set it works for me.
Thanks both of you for your kind response. Currently I am engaged in some other stuff, so i have not tried yet… Once I am back will try your given suggestion.