![]() |
#1 |
Участник
|
Malaysia: Copying a record
Источник: http://axmas.blogspot.com/2012/11/copying-record.html
============== class MainAccountCopy { } static void main(Args _args) { MainAccount mainAccount1; MainAccount mainAccount2; ; mainAccount1 = MainAccount::findByMainAccountId('211100'); ttsBegin; mainAccount2.data(mainAccount1); mainAccount2.MainAccountId = '211101'; if (!mainAccount2.validateWrite()) { throw Exception::Error; } mainAccount2.insert(); ttsCommit; } Источник: http://axmas.blogspot.com/2012/11/copying-record.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|