all groups > macromedia flash flash remoting > july 2004 >
You're in the

macromedia flash flash remoting

group:

Combo Box select to match returned value from serv



Combo Box select to match returned value from serv LuckyNinja
7/16/2004 3:15:09 PM
macromedia flash flash remoting: I have a combo box with a list of provinces and i'd like the combo box to
select the appropriate province based on the returned data from my service
call. Any input would be appreciated thanks.

Best Regards,

Ryan F.
Re: Combo Box select to match returned value from serv LuckyNinja
7/16/2004 7:41:08 PM
Figured it out.

i used a for loop to loop over the entries in the combo box

function getPatient_Result (result) {

for (i=0; i < province_cb.getLength(); i++){

trace(province_cb.getItemAt(i).data);
if (province_cb.getItemAt(i).data == result.getItemAt(0).province) {
trace("Selected Province: "+ province_cb.getItemAt(i).data);
path.province_cb.setSelectedIndex(i);
}
}
}
AddThis Social Bookmark Button