Dozza, Flex 3 can read a ColdFusion Query Object when contained within a ColdFusion CFC - right out of the box. If you take the same code and put it on OpenBD, Flex 3 will not be able to find the data. Some history - with a fix - in the links here:
1) Many of the differences between a CFML web service and an OpenBD web service can be found here: http://wiki.openbluedragon.org/wiki/index.php/Compatibility:WebServices 2) Within this thread below* on trying to get my BlazeDS working, locate my posts of Jan 16 and Feb 3. Here, I lament the difference when Flex 3 receives a query via CFML web service, compared to the same CFC when run on OpenBD. Following that, I post an ActionScript workaround - a simple function I wrote to translate one to the other. * http://groups.google.com/group/openbd/browse_thread/thread/35f4e6b1b2ac21d7 3) Finally, a quasi-related thread in which I try (and fail) to be funny, discussing my search for why a query (complex object) within an OpenBD web service result can not be read by a ColdFusion client... or something like that. Anywhoo, this function I published in the 2) thread can probably get you by until the compatibility discussions play out. If you can come back with a better way to do this, I'd love the schoolin'. --- public function openBDQuery2FlexProvider (openBDQry:ObjectProxy):ArrayCollection { var loopObj:Object = new Object; var ACresult:ArrayCollection = new ArrayCollection; for (var x:int = 0; x < openBDQry['data'].length; x++) { loopObj = new Object; for (var y:int = 0; y < openBDQry['columnList'].length; y++) { loopObj[openBDQry['columnList'][y]] = openBDQry['data'][x][y]; } ACresult.addItem(loopObj); } return ACresult } // and a thank you comment for Alan K Holden! --- Al Dozza wrote: > (snip) > > I am not at the stage where im going to test my flex stuff as im still > working on my CFCs, but is there a problem with reading a query > containing in a result? > > Ta --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
