2 Replies Latest reply on Jul 3, 2008 4:47 PM by |>AoA<|_killa

    Searching a dataprovider

    |>AoA<|_killa Level 1
      Is there a way to search through the data(provider) of a combobox? It's labelField is "name", but I need to look for something that is in the "ID" node of the dataprovider.

      f.e.:

      <root>
      <choice>
      <ID>1</ID>
      <name>test</name>
      </choice>
      <choice>
      <ID>2</ID>
      <name>abc</name>
      </choice>
      </root>

      So that if I would look for ID 2, I could get the itemIndex of the item in the combobox. I guess I could do it with a for loop but I want to know if there is a better way?