<[EMAIL PROTECTED]> wrote:
>
> On 5/2/06, djbrown_rotonews <[EMAIL PROTECTED]> wrote:
>
> > 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:
> [snip]
>
> A couple of things:
>
> 1. 'result' has been renamed to 'lastResult' in Beta 3
> 2. 'resultFormat' should be 'e4x' for the result to be XMLList
>
> Manish
>
yeah, changing the resultFormat to 'e4x' got rid of the various
exceptions I was getting, but I'm still struggling with "drilling"
down into the XML data in order to display it.
My DataGridColumns have a labelFunction declared, with the
implementation below:
public function labelFunction(item:XML, column:DataGridColumn):String
{
var node:String = column.dataField;
trace("node = " ,node);
trace ( "item = ", item);
trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
trace("item.leg.node = ", item.leg.node);
trace ("item.leg[node] = ", item.leg[node]);
trace ("[EMAIL PROTECTED] = ", [EMAIL PROTECTED]);
trace ("item..cpflt = " , item..cpflt);
< rest of function snipped>
}
------
and the following output is produced. obviously, I get the root XML
object just fine, but my numerous attempts to get individual
elements hasn't been successful. How can I return the "dataValue"
from the desired "node" for each item? I'm using Flex Beta2
Console output:
node = fa
item = <leg>
<cp dataValue="2" severity="0"/>
<cpflt dataValue="0420" severity="0"/>
<cpfrm dataValue="N/A" severity="0"/>
<fa dataValue="3" severity="0"/>
<faflt dataValue="1961" severity="0"/>
<fafrm dataValue="N/A" severity="0"/>
<tp dataValue="738W" severity="0"/>
<ac dataValue="3CY" severity="0"/>
<acfrm dataValue="0420" severity="0"/>
<acfrmsta dataValue="DEN" severity="0"/>
<flt dataValue="0420" severity="0"/>
<sta dataValue="YYZ" severity="0"/>
<depsta dataValue="N/A" severity="0"/>
<skd dataValue="1835" severity="0"/>
<lat dataValue="1835" severity="0"/>
<prj dataValue="1859" severity="0"/>
<dl dataValue="N/A" severity="0"/>
<dtl dataValue=" 0" severity="0"/>
<ttl dataValue="N/A" severity="0"/>
<res dataValue="ETD" severity="0"/>
<rmk dataValue="ETD" severity="0"/>
<vl dataValue="C" severity="0"/>
<fixable dataValue="N" severity="0"/>
<fk dataValue="N/A" severity="0"/>
<pat dataValue="N/A" severity="0"/>
<lta dataValue="N/A" severity="0"/>
<sbk dataValue="N/A" severity="0"/>
<lbk dataValue="N/A" severity="0"/>
<sat dataValue="N/A" severity="0"/>
<acarvtime dataValue="1822" severity="0"/>
<cparvtime dataValue="N/A" severity="0"/>
<faarvtime dataValue="N/A" severity="0"/>
<arvstatus dataValue="P" severity="0"/>
<acskedarvtime dataValue="1743" severity="0"/>
<aclatestarvtime dataValue="1821" severity="0"/>
<arvpax dataValue="60" severity="0"/>
<depstatus dataValue="S" severity="0"/>
<deppax dataValue="85" severity="0"/>
</leg>
[EMAIL PROTECTED] =
item.leg.node =
item.leg[node] =
[EMAIL PROTECTED] =
item..cpfrmsta =
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

