DataLockItem

Properties:

DataSource
Fields
Mode
Region

Methods:

SetValue
UseFromDataSource

Description:

The object is used to lock data explicitly to prevent reading or changing by other sessions (as a part of the DataLock object).

Availability:

Server, thick client, external connection.
Exchange with server is possible. Serializable.

Example:

Blocking = New DataLock;
LockItem = Blocking.Add("AccumulationRegister.GoodsInStocks");
LockItem.SetValue("Quality", Catalogs.Quality.FindByCode("1"));
LockItem.Mode = DataLockMode.Exclusive;
LockItem.DataSource = DocumentObject.ReturnableContainer;
LockItem.UseFromDataSource("Nomenclature", "Nomenclature");
LockItem.UseFromDataSource("Stock", "Stock");
Blocking.Lock();

See also:

DataLock, method Add
DataLock, method Get

    

1C:Enterprise Developer's Community