all groups > flash data integration > may 2005 >
You're in the

flash data integration

group:

Uploading XML into Datagrid


Uploading XML into Datagrid Dinghus
5/23/2005 12:00:00 AM
flash data integration:
I have CF4.5 (still can't get this customer up to MX) creating an XML file from
a database query. This is called by a load operation from Flash.

The XML gets up to Flash no problem, but now, how do I get it into a Datagrid?

I thought the datagrid component saw an XML file as an array but I guess not.

This is my AS right now.

myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad=function(success) {
if(success) {
myDG.dataProvider = myXML;
}
}

myXML.load("dataSource.cfm");
Re: Uploading XML into Datagrid Dinghus
5/24/2005 12:00:00 AM
Am I the only one in the whole wide world who runs into this type of problem?
I always seem to ask questions that nobody can answer. Somebody MUST know
about getting XML into a datagrid. I can't believe nobody else has ever done
this.

And of course there is no documentation that I can find on this on the
Macromedia site.
Re: Uploading XML into Datagrid Dinghus
5/24/2005 12:00:00 AM
Well, I found one way. Loop over the XML and do ADDITEM to the datagrid.
Seems like the hard way but nothing else works, not even making the data into
an array first.

Weird.

And nobody else has ever done this before. That is really strange. :)
AddThis Social Bookmark Button