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



May 23, 2011, 8:26 PM
1 Posts

Search using XPages

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: xpages customer control
  • Replies: 1
I am new to XPages and developing a simple discussion DB for my company and copied from the R8.5 discussion template. I have created the search by creating a viewScope variable and referenced the same in the view custom control
 
var v:string = viewScope.get("searchStr");
v;
 
The search works great but the problem is that
When i click back to all documents button from the topic i just opened, it opens the view but displays only the search results instead of all documents in the view. I tried to toggle between the veiws but still no luck. How can i flush results when i click that BACK button on the form. Remember this is not the browser BACK button. Please help me as i am new to xpages and could not find on web, this could very well be a easy trick.
 
I have the same like this discussion website but mine is not working in the same way.. :-)
 
Thanks
MM
May 24, 2011, 12:49 PM
21 Posts
Re: Search using XPages
Are you sure the viewScope variable isn't being set again?  eg, if the field is still on the form, it might be being set again when you move back.
I'd null the viewScope variable when you hit the back button just to be sure.

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