Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

Problem with dataservices query.

$
0
0

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.


Viewing all articles
Browse latest Browse all 58696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>