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



Jun 11, 2011, 2:17 PM
35 Posts
topic has been resolvedResolved

Javascript refer to the component itself

  • Category: Server Side JavaScript
  • Platform: Linux
  • Release: 8.5.3
  • Role: End user,Developer
  • Tags:
  • Replies: 2
 Hello forum,
 
Probably something stupid, but I can't find the information I'm looking for... 
 
I'm writing some javascript code in a combobox component
 
From my javascript code how can I get the current component value without using getComponent("combobox").getValue()
 
Is there something like me.getValue()
 
Thx in advance for your help. 
 
Best regards, 
Jun 11, 2011, 7:12 PM
261 Posts
Re: Javascript refer to the component itself
In an event, the keyword "this" refers to the event itself. The "this" object has a getParent() method. So if you use this.getParent(), you should have access to the checkbox control.
 
Mark
Jun 14, 2011, 2:35 PM
35 Posts
Re: Javascript refer to the component itself
Thx again Mark for your help and good advices!
 
It's working like a charm. 
 
Best regards 

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