Question john.smith4237 · Oct 14, 2024

dataBinding on Combobox

Hi Guys,

I've the below databinding on a combobox and the issue that the binding is coming with the display value of my levels so eg. I'm getting normal instead of 1 which mean the combobox in my form is not showing, so how get the binding to bring the VALUELIST rather then DISPLAYLIST ?  

Property Level As %String(DISPLAYLIST = ",Normal,Dangerous,", VALUELIST = ",1,2,3");
 

<combobox dataBinding="levels" label="levels :" dropdownHeight="130px" dropdownWidth="230px">
  <option value="1" text="normal"/>
  <option value="2" text="dangerous"/>
  <option value="3" text="Extreme"/>
  </combobox>

Thanks

Product version: Ensemble 2018.1

Comments

David Hockenbroch · Oct 14, 2024

Inside your combobox, you can define a displayList and valueList. If you do that, you don't have to also define the options individually.

0