Hi,
How can we get an item selected in a ComboxBox when it's coming from 
a RemoteObject?

my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>

<mx:RemoteObject id="toitureObject" source="EEwizard3.G.toit_nf">

  <mx:method name="affichage" result="resultHandler(event.result)">
    <mx:arguments>
      <zoneID>1</zoneID>
    </mx:arguments>
  </mx:method>
</mx:RemoteObject>      
        
<mx:Script>
<![CDATA[
   var iniVal:Object;
   function resultHandler(result){
      iniVal = result;
   }
]]>
</mx:Script>
<mx:Model id="typeToitureModel">
  <toiture>
    <type>
      <label>Type I</label>             
      <data>3300</data>
    </type>
    <type>
      <label>Type II</label>            
      <data>3301</data>
    </type>             
    <type>
      <label>Type III</label>           
      <data>3302</data>
    </type>                                             
  </toiture>
</mx:Model>
        
<mx:Button label="Get Data" click="getdata();"/>

 <mx:ComboBox dataProvider="{typeToitureModel.toiture.type}" 
value="3302" selectedItem="{???????????}"/>
 
</mx:Application>


Thanks
 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to