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");
Dinghus - 24 May 2005 22:25 GMT
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.
Dinghus - 25 May 2005 02:16 GMT
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. :)