8 Replies Latest reply on Jan 18, 2007 6:17 AM by stanymi2

    Populate ComboBox with an object HTTPService

    MS!
      Hi,
      i don'understant why it is not possible to get the data field nomPeriode in my comboBox.
      Here is the xml returned by a script php

      <periodes>
      <periode>
      <nomPeriode>HS-ete</nomPeriode>
      <debutPeriode>2006-06-15</debutPeriode>
      <finPeriode>2006-09-15</finPeriode>
      </periode>
      <periode>
      <nomPeriode>Automne</nomPeriode>
      <debutPeriode>2006-09-15</debutPeriode>
      <finPeriode>2006-11-21</finPeriode>
      </periode>
      </periodes>

      and in my file mxml
      <mx:ComboBox x="183" y="10" width="120" id="Cperiode" dataProvider="{resperiode.lastResult.periodes.periode.nomPeriode}"></mx:ComboBox>

      I have this error :
      Error: Unknown Property: 'nomPeriode'.

      if i remove nomPeriode i have a list of object in my combo.
      How i can get nomPeriode in the combo??
      Sorry for my english
      Thank you for your answer