i have an httpservice as a dataprovider for a combobox that outputs:

<countries>
 <country label="USA" data="1"/>
 <country label="Canada" data="2"/>
 <country label="Mexico" data="3"/>
</countries>

i want canada to be selected initially.

i know you can use selectedIndex, but that will not work for me since
i can only use the "data" field as reference.

is there any way to pass "selected", like in an html form- something like:
<country label="Canada" data="2" selected:true />

or is there any way to call something like: country.selected=2 and use
the data reference? 

I tried selectedItem=2 (wich would've been great) but no success. 

I appreciate your help! thanks

Reply via email to