Hi,
i would like to hear some suggestions on how to solve the following requirement the best way in xPages.
I have a typical application where the user navigates through several catagorised and flat views. (All using xPages with the view-control) Then he opens a document in read mode, switches to edit-mode and the saves or cancels this. This all works but now i would like him to return to the last used view exaclty as he has left it.What would be the best approach ?
-
I have tried to use the normal “Back” functionality but this only reopens the last view. It does not expand/collapse the categories correctly, nor positions to the page where the last accessed document was.
-
now i am storing in an sessionScope variable the last accessed view-name and the last accessed UNID of the document. To return to this view after a cancel or save from the form is easy. But again it is opened with collapsed categories. I thought that i could set the position through the “data\data\first”-property of the view-control. But it requires a position number of the document it displays first. (i have a UNID) Moreover if i set it for example to “10” it seems to break the “Pager” control, because now i can’t see the first 9 documents, but i also can’t scroll to the previous page to get to them.
So my question would be if this is the right approach, or if there is a much better way to do this ?
Thank you in advance.
Lars