Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Executes all data operations in the queue.
execute: function(succeededCallback, failedCallback, userContext)
Usage
exampleActionSequence.execute();
Parameters
Parameter |
Definition |
|---|---|
succeededCallback |
(Optional) The callback function to execute when all operations in the queue have finished. |
failedCallback |
(Optional) The callback function to execute if the batch request fails. |
userContext |
(Optional) The state object for the queue. |
Remarks
Use the execute method to execute all the data operations that you have added to the AdoNetActionSequence object. The operations will be executed in the order you added them to the AdoNetActionSequence object. The function that you provide in the succeededCallback parameter will be called when all the operations have been executed.
The signature for the callback function must match the following example:
function succeededCallback(result, hasError, context)
The function that you assign to the callback function must accept three parameters. The first parameter contains an array of AdoNetActionResult objects which represent the results of each operation. The second parameter contains a Boolean value that indicates whether an error occurred during any one of the operations. The third parameter contains the state object for the batch of operations.