Hello,
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:
protectedfunction button1_clickHandler(event:MouseEvent):void
{
productMasterSpecificationDetailsService.getByProductMasterSpecificationDetailsUniqueID(_ spec);
}
<fx:Declarations>
<s:CallResponder id="getByProductMasterSpecificationDetailsUniqueIDResult"/>
<services:ProductMasterSpecificationDetailsService
id="productMasterSpecificationDetailsService"
fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
result="productMasterSpecificationDetailsService_resultHandler(event)"/>
</fx:Declarations>
<s:Button click="button1_clickHandler(event)" />
Artour.
LordAlex Works Inc.