This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 17, 2011, 7:04 PM
14 Posts

Filter By Column and Scoped Variable

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 0
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?
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal