0 Replies Latest reply on Oct 31, 2007 1:36 AM by YosiDov

    How to get Combobox index from data string using addItem

    YosiDov Level 1
      I have a Combobox (yosi) with data and labels in the parameter window, when I ask for
      yosi.selectedIndex = findIndex(yosi.data, "3"); it sent my Combobox to the option label 3 (who have data value of 2).


      If I delete the data and labels from the parameter window and instead that I add data like this: yosi.addItem({data:"2",label:"2"}) and now I receive undefined.

      Need to be a way to call a specific combobox option index using it string also when this data came using addItem in the Script.