I got an idea from David Leedy's site XPage Cheatsheet Demo App. I
have a repeat control tied to a view which has a computed value
sessionScope.get("qryStr") for Filter By Column. The first value in the
repeat is a reference number. At the top of the repeat, I have a Search
Edit Box with an onkeyup event to refreash the repeat control data. The
search box is bound to a scoped variable "qryStr". Beside the search
text edit box, I have a reset button to clear the scoped variable.
So,
when a user enters the view, they can enter a reference number in the
box and as they type the repeat data will filter to show only what they
are searching for.
I have built links in the repeat to allow the
user to open documents. Everything works fine until the user opens a
doc, then clicks the Back button on their browser. It goes back to the
view. The search box retains the value they originally typed to filter
the view, but the repeat control is no longer filtered. I want the
scoped variable to remain in place until the user clicks the reset
button. How can I keep the repeat control filtered by the scope variable
if they leave the page to view a document?