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



Oct 28, 2011, 10:29 AM
51 Posts

Hide show inner panels with sessionScope variable

  • Category: Other
  • Platform: Windows
  • Release: 8.5.1
  • Role: Developer
  • Tags:
  • Replies: 1
On my Xpage I have a checkbox with true and false values for a sessionScope variable, productStrategy (compute Dynamically)
 
I have a button with an action to partial refresh an outer Panel. 
The idea is that if the sessionScope variable is true then it should show the inner Panel:  visible/  computed (sessionScope.get("productStrategy"))
and the opposite when the sessionScope variable is false it shouldn't show the Panel 
Problem : even when the SessionScope variable is false , the inner panel is showed. 
 
Even when I put under visible / computed : return "false" the Panel is rendered .... 
 
Oct 28, 2011, 11:03 AM
53 Posts
Re: Hide show inner panels with sessionScope variable
Your session scope variable needs to be a boolean, not a string
 
return false (without the quotes) should work

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