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 9, 2011, 10:19 AM
8 Posts

Can we have dynamic custom controls in XPage like computed subform.

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: custome control,dynamic,subform
  • Replies: 2
Hi guys,
 
Can we have a dynamic custom control usin SSJS in facet ?  
like we have computed subforms using formula.. i.e based on some condition i want to change my custome control.
 
is it possible with xPages? 
 
Thansk and Regards 
Aneesh. 
May 9, 2011, 11:05 AM
33 Posts
Re: Can we have dynamic custom controls in XPage like computed subform.
You can't do that using facets, at least not the way subforms work.
If you want "subform" try 'Include page' control (from a standard XPages set).
The label says Include page but you can use it even for custom controls. 
May 9, 2011, 3:58 PM
41 Posts
Check out the SVN source of the Extension Library
 The extlib.group fragment of the Extension Library contains a working implementation of what you're describing (though it doesn't use facets to accomplish the dynamic rendering). You can either build the fragment from source and deploy it as a plugin on your server, or use the source as a guide for implementing the same technique locally to your application.

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