|
![]() |
#1 |
Участник
|
Получилось только так:
X++: static void job123(Args _args) { ... void updateFieldValue(Common _common, FieldId _fieldId, anytype _value) { DictField dictField; DictTable dictTable = new DictTable(_common.tableId); Common common; ; ... try { ttsBegin; common = dictTable.makeRecord(); common.selectForUpdate(true); select common where common.RecId == _common.RecId; common.(_fieldId) = _value; ttsCommit; } catch { ttsAbort; } ... } ... ; ... updateFieldValue(APMParameters::find(), fieldnum(APMParameters, Field1), valueField1); ... } |
|
|
За это сообщение автора поблагодарили: sukhanchik (2), SRF (1). |
![]() |
#2 |
Участник
|
А при такой конструкции ошибка ?
X++: ttsbegin; _common.selectForUpdate(true); select _common where _common.recid == _common.recId; _common.(_fieldId) = _value; _common.doUpdate(); ttscommit;
__________________
Sergey Nefedov |
|
|
|