5 Replies Latest reply on May 5, 2011 4:41 AM by generaldelivery

    Problem with dataservices query.

    Artour Arifoulline Level 1



      We're getting a Type Coercion failed error (TypeError: Error #1034: Type Coercion failed: cannot convert _ProductMasterSpecificationsEntityMetadata@18599b01 to mx.data.IManaged.) when we call a second time a getByProduct but only in one case because everything else seems to work.



      Here's a sample code, the error occur when we click a second time on the button:



      protected function button1_clickHandler(event:MouseEvent):void


           productMasterSpecificationDetailsService.getByProductMasterSpecificationDetailsUniqueID(_ spec);






           <s:CallResponder id="getByProductMasterSpecificationDetailsUniqueIDResult"/>



                fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"





      <s:Button click="button1_clickHandler(event)" />





      LordAlex Works Inc.