Desktop version

Main > Knowledge Base > Knowledge Base > Knowledge base > Practical developer guide 8.3 > Lesson 14 (3:20). Optimization of posting the Services document > Locking data that is read and modified during posting > In Designer mode > Practical developer guide 8.3 > Lesson 14 (3:20). Optimization of posting the Services document > Locking data that is read and modified during posting > In Designer mode

In Designer mode

How does one do it? This is definitely a good question. Let us look at the Data lock control mode configuration property. This property has the Managed value (fig. 14.31).

 
Fig. 14.31. Data lock control mode in configuration properties

This means that you have to use managed locks, which are set using 1C:Enterprise script tools.

You need to lock the data you intend to read and subsequently modify. This is implemented using the LockForUpdate property of register record sets. Let us use this property.

A managed lock is applied at the moment of writing these record sets, right before the execution of the second query. This is exactly what we wanted to achieve.

Next page: Marking custom module regions




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.