DataLock
Collection elements:
Iteration through collection using For each ... In ... Do operator is available to object. Elements of lock are retrieved during iteration.
Access to element of lock is possible using [...] operator. Index (starting from 0) is passed as an argument.
Methods:
Count
Get
Lock
Constructors:
Description:
Availability:
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(); |