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



Aug 16, 2012, 6:39 AM
23 Posts

Toggle in option button

  • Category: Other
  • Platform: Other
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
I have a scenario, where I need to change the views in xpages based on the option button selection.
 
That is,  I have radio button as shown below:
when I click PR, PRview will be displayed and when I click PO another view will be loaded.
 
 
 
Pls let me know how to achieve this functionality.
Aug 16, 2012, 12:25 PM
56 Posts
Re: Toggle in option button
Hi,
 
exactyl like in the form.
 
You can define a radioButton and in the onChange event you can do a partial refresh on the element you want to hide/show.
 
You should build in both views and set them to rendered =false (or at least one of them.)
Then, in the event you can access the view with getCompoent("id") and set rendered to true and vice versa.
 
Hope this helps
 
http://mnicklisch.wordpress.com

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