HI Jitendra,
Please find below the code. I am using this id for making the call.
This problem is that the call doesnt goes to the backend. It fails at
flex side only before it is shown on the server. The assembler
deletItem function contains only SOP statements as of now.
--Data-management-config.xml
<destination id="MyAssemblerID">
<adapter ref="java-dao" />
<properties>
<source>com.example.assembler.MyAssembler</source>
<scope>application</scope>
<auto-sync-enabled>true</auto-sync-enabled>
<metadata>
<identity property="id"/>
</metadata>
<use-transactions>false</use-transactions>
<network>
<session-timeout>20</session-timeout>
<paging enabled="false" pageSize="10" />
<throttle-inbound policy="ERROR" max-
frequency="500"/>
<throttle-outbound policy="REPLACE" max-
frequency="500"/>
</network>
</properties>
</destination>
--- Services.as
<mx:DataService id="myservice" destination = "MyAssemblerID"/>
--- MyDelegate.as
var service = getDataService("myservice");
var token : AsyncToken = service.deleteItem(asObj);
reference.addResponder(new DeleteCommand());
Thanks,
Anubhav.
On Jan 10, 4:59 pm, "Jitendra Jain" <[email protected]>
wrote:
> May be u have quoted a wrong destination id.
>
> Thanks,
>
> Regards,
> JJain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---