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



Mar 22, 2012, 4:01 PM
11 Posts

use combox with dynamiccontent

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: Combox,Dynamic Content,Change Dynamic Content action
  • Replies: 2
I have a dynamic content on xPage. I would like to use the onChange event from a combox to fire the "Change Dynamic Content" action.
 
But I failed to find a way to get the selected value of that combox control at onChange event (server side).
 
I tried getComponent("combox1").getValue() that returns the old value now the newly selected value. I also tried to use .getSubmittedValue() that simply returns null.
 
Is this possible? Also the event handler of combox is set to submit=true and partial update=true with a refreshId which is the panel id which contains the dynamic content.
 
Looking forward to any suggestions or help 
 
Many thanks in adv 
Xun 
Mar 22, 2012, 8:04 PM
17 Posts
Re: use combox with dynamiccontent
it should work with getsubmittedvalue and immediate = true, like
value = getComponent("comboBox1").getSubmittedValue();
 
and for the eventhandler
<xp:eventHandler event="onchange" submit="true" refreshMode="partial" immediate="true" refreshId="dialogdiv" id="eventHandler4">
Mar 23, 2012, 12:31 PM
11 Posts
Re: use combox with dynamiccontent
Many thanks Walter!
 
with the immediate set to true the .getSubmittedValue() returned the selected value as expected!  
 

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