Every callback function has access to the AsyncResult object.
What is returned to the AsyncResult.value property varies depending on the functionality of the "Async" method.


Access the values in the current selection in the format that was specified.


Determines the success or failure of the operation.


Provides error information if the operation failed.


Returns the user defined item passed in to the AsyncContext parameter.

function getDataWithContext() { 
   var format = "your data : ";

      { asyncContext : format },

function callback_showDataWithContext(result) {
   showMessage(result.asyncContext + result.value);

result Parameter

This result parameter is of type AsyncResult
Any callback functions must include a single parameter "result"

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext