I'm in the process of converting some old code that took the form of:

<mx:HTTPService id="getadvisordelays" url=""
method="GET" showBusyCursor="true">     
</mx:HTTPService>

and a DataGrid hook point of:
dataProvider="{mx.utils.ArrayUtil.toArray
(getadvisordelays.result.delays.leg)

to display my XML results in a DataGrid. It worked just fine.

However, I'm wanting to use a combo of e4x and XMLListCollection to
filter the results on the jsp on the client side, and am running
into problems.

I set up my XMLListCollection as follows:
<mx:XMLListCollection id="delays_xml"
source="{getadvisordelays.result.delays.leg}"/>

But I get an
Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to
XMLList

error when it tries to retrieve the data. I've tried
getadvisordelays.result.*
getadvisordelays.result.delays.*
getadvisordelays.resullt.delays.leg.*

as the "source" attrib, and they each throw an error of some form.
can anyone tell me what I'm doing wrong? I'm using the following as
a source for my implementation:
http://mannu.livejournal.com/324821.html

My returned XML takes the form of:
<?xml  version="1.0" encoding="UTF-8" ?>
<delays>
    <leg>
              <vl   dataValue="CF" severity="1" />
              <skd  dataValue="1405" severity="0"/>
              <lat dataValue="1435" severity="0"/>
              <prj dataValue="1435"  severity="2"/>
              <flt dataValue="1656/05" severity="0"/>
              <sta  dataValue="OMA"  severity="0"/>
              <dl dataValue="58"  severity="3"/>
              <dtl dataValue="46"  severity="1"/>
              <ttl dataValue="2"  severity="4"/>
              <tp dataValue="SP80" severity="0"/>
              <ac  dataValue="579" severity="0"/>
              <acfrm dataValue="1456/05" severity="0"/>
              <acfrmsta dataValue="DFW" severity="0"/>
              <cp dataValue="2" severity="0"/>
              <cpflt dataValue="0817" severity="0"/>
              <cpfrm dataValue="TUL" severity="0"/>
              <fa  dataValue="3"  severity="0"/>
              <faflt dataValue="0817"  severity="0"/>
              <fafrm dataValue="TUL" severity="0"/>
              <fixable  dataValue="N" severity="5"/>
   </leg>








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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to