3 Replies Latest reply on Aug 4, 2008 1:25 AM by Kreshiv

    XML Databinding in Datagrid

    Kreshiv
      Hi,

      I am new to Flex, and was trying to work out this sample project.

      http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files

      In XML Data Exchange, I am not able to fetch event.result.option. In debug mode, i am able to see the XML result of event.reult but when i type, event.result.option the debugger is saying that it is not able to find any variable as Option.. can anyone suggest me?

      XML Data:

      <html xmlns=" http://www.w3.org/1999/xhtml">
      <head id="Head1">
      <title>
      Untitled Page
      </title>
      </head>
      <body>
      <form name="form1" method="post" action="XMLHttpService.aspx?pounds=21&amp;zipcode=32321" id="form1">
      <div>
      <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEzNDEyMDg2NjZkZObyVtHWMlazJbLjBDQh/voeDmmP"/>
      </div>
      <div>
      <options>
      <option>
      <service>
      2 days:
      </service>
      <price>
      216
      </price>
      </option>
      <option>
      <service>
      4 days:
      </service>
      <price>
      432
      </price>
      </option>
      <option>
      <service>
      SAVER Ground:
      </service>
      <price>
      108
      </price>
      </option>
      </options>
      </div>
      </form>
      </body>
      </html>

      How to access option from event.result?