AX: Support for pessimistic locking
Let’s skip an introduction and jump right into code: while select forUpdate myTable { ttsBegin; myTable.MyField = ‘something’; myTable.update(); ttsCommit; } I meet such a code really often and it works very well under certain circumstances. Specifically, it requires optimistic record locking to be active. In such cases, Dynamics AX just check whether a record …