I don't have the IDE in front of me but I would think something like
this should work:

function changeDP(attrName):void
{
var list:XMLList = baseXml..myNodes.([EMAIL PROTECTED]);
myDG.dataProvider = list;
}

Is that what you mean?

HTH,
Ben
http://www.returnundefined.com/


--- In [email protected], "John Wilker" <[EMAIL PROTECTED]> wrote:
>
> I'm working on a project that has a datagrid, who gets data from an XML
> object.
> 
> I'm trying to figure out how to use E4X to filter the XML data I got and
> update the datagrid so I have less roundtrips to the server. I've found
> several examples in language reference, but those make use of either
> directly binding to an E4X statement, or using MX binding to do the
same.
> 
> I'd like to have a function, that will filter my large XML dataset,
using
> E4X (ie, get just the nodes that are of type XYZ) and use that to
populate
> the datagrid.
> 
> Hopefully that makes sense?
> 
> -- 
> John Wilker
> Vice President Software Development/Writer
> Red Omega Solutions, Inc.
> www.johnwilker.com / www.red-omega.com
> 
> "Everything changes, nothing remains without change." ~Buddha c.483 bc
>







--
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