Share this page

# TCA.setTransactionStatus

Sets the default end status of currently open transactions which have Auto status in their TCA.endTransaction statement.

    TCA.setTransactionStatus(status);

Note: If you make a series of calls to modify the Auto status, then the last call before TCA.endTransaction is the one that effectively changes the status.

## Arguments

status. One of the following transaction status values: Pass, Fail.

The Auto status is not applicable.

## Return value

A promise that will be fulfilled with no arguments.

## Example

Copy code

    TCA.setTransactionStatus("Fail").then(function(){
      TCA.done();
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: