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, 2011, 9:29 AM
21 Posts

Re: Converter does not work with a comboBox control

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: converter
  • Replies: 2
Can't you just use the itemValue parameter within the <xp:select> to set the backend value?

Mar 22, 2011, 10:37 AM
7 Posts
Re: Converter does not work with a comboBox control
 Andrew, this will work here, but not in my real-life application. In my application, I convert the selected value to a string that is calculated in a complex and performance demanding way (the code needs to iterate through views, etc....).
So, rather than perform these expensive calculations for each of the available values, I prefer to calculate only once: just for the value that was selected by the user. This works much faster (especially when the dropdown contains hundreds of values). 
 
Hence, the most straightforward approach to me is using a converter.
 
I could perform the calculations  in the "save" button of the document. But that's not an ideal solution here: I share the action buttons (save, submit, publish,...) accross many different document types, and the conversion needs to be done for only one particular type of document.

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