Adobe® LiveCycle® Data Services ES 2.6 Developer Guide

Handling events

Calls to a remote service are asynchronous. After you invoke an asynchronous call, your application does not wait for the result, but continues to execute. Therefore, you typically use events to signal that the service call has completed.

When a service call completes, the RemoteObject component dispatches one of the following events:

  • A result event indicates that the result is available. A result event generates a mx.rpc.events.ResultEvent object. You can use the result property of the ResultEvent object to access the data returned by the service call.
  • A fault event indicates that an error occurred. A fault event generates a mx.rpc.events.FaultEvent object. You can use the fault property of the FaultEvent object to access information about the failure.

For more information on handling these events, see Handling service events.


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/rpc_remoteobject_5.html