This content has been marked as final. Show 4 replies
Well. I would think the best solution would be to change the query results transfer format to XML.
Unable to do that, when you get the data you need to convert it to an XML object I would think, for the XMLList's source is an XML object.
Finally, I would re-look at the ArrayCollection as the data provider once more.
Thanks Greg. I tried casting the query returned from the ColdFusion component to XML, but couldn't get the data into the XMLListCollection this way. When I traced it, all I saw was [object Object] although there were the correct number of entries so I know the right data was going in there. Is there a middle step I need to take to convert the objects into XML?
I do not use ColdFusion but rather PHP and mySQL usually.
So I can not really tell you an answer to that.
For me, I have a PHP class that will return the query results in an XML format. That is what I pass to the application.
There must be some such options with ColdFusion but I am not the one to ask. :(
You cannot cast unless the cariable you are casting contains an object of the type you are casting to.
ArrayCollection will never contain an XMLListcollection, so forget casting.
If the CFC IS returning xml, then set the resultFormat="e4x", then in the handler, do:
var xmlResult:XML = XML(event.result);