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



Dec 8, 2011, 9:09 PM
5 Posts

Set Combobox value

  • Category: Other
  • Platform: Linux
  • Release: 8.5.1
  • Role: Developer
  • Tags: combobox
  • Replies: 1
Hi,
 From the URL , i'll be fetching the value and need to set it in the combobox. I tried by setting the values in "value" property, but its not setting. Please advise. 
Dec 9, 2011, 8:08 AM
261 Posts
Re: Set Combobox value
Try using the defaultValue attribute:
 
<xp:comboBox id="combo1" >
 <xp:this.defaultValue><![CDATA[#{javascript:context.getUrlParameter("someParameter")}]]></xp:this.defaultValue>
</xp:comboBox>
 
Also: make sure that the value you're trying to set as a default value is available in the list of options for the combobox ("value" attribute).
 
Mark

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