ExternalDataSourceManager.<Name of external source>.BeginTransaction

Syntax:

BeginTransaction(<LockMode>, <IsolationLevel>)

Parameters:

<LockMode> (optional)

Type: DataLockControlMode.
This parameter is worth setting if the "Data lock control mode" configuration property is set to "Automatic and manual".
If the parameter value is Automatic, this transaction will be performed in the automatic lock mode.
If the parameter value is Managed, then controllable locks will be performed in this transaction. If by the moment of calling this method a transaction performed in the automatic lock control mode was started, then setting Managed parameter value will not lead to a change of the lock control mode.
If by the moment of calling this method a transaction performed in the controlled lock mode was started, then setting Automatic parameter value will lead to an exception which could be processed by the Try... Except ... EndTry construction.
If the "Data lock control mode" configuration property is set to"Managed", then the default paramer values is Managed.
Default value: Automatic.

<IsolationLevel> (optional)

Type: TransactionsIsolationLevel.
The parameter specifies the required level of the transaction isolation.
If the parameter value is Auto, the actual isolation level will be selected based on the LockMode parameter, otherwise the specified level will be selected. If the database of the external source of data does not support the given level, the level will be increased automatically.
Default value: Auto.

Description:

It opens the transaction. The transaction is used to write agreed changes to the database of the external source of data. All changes entered after the transaction starts will be then either written in full, or deleted in full.

Availability:

Server, thick client, external connection.

See also:

ExternalDataSourceManager, method CommitTransaction
ExternalDataSourceManager, method RollbackTransaction

    

1C:Enterprise Developer's Community