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



Nov 22, 2011, 8:07 AM
170 Posts
topic has been resolvedResolved

get clientside rendered id is SSJS

  • Category: Server Side JavaScript
  • Platform: Not Applicable
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
 Is there a way to get the id the component gets in the client side from SSJS?
 
I have tried getid but that only returns the server side id and also tried the ._xspGetStateId() but that returns some part of the id in wrong order. 
 
/Fredrik 
Nov 22, 2011, 9:23 AM
272 Posts
Re: get clientside rendered id is SSJS
Hi Fredrik,
 
do you mean getClientId()?
 
Hope this helps
Sven
 
http://blog.hasselba.ch
Nov 22, 2011, 2:58 PM
38 Posts
Re: get clientside rendered id is SSJS
 var id='#{id:componentID}'
 
or  
 
var id = "#{javascript:getClientId('componentID')}"

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