Показать сообщение отдельно
Старый 29.08.2008, 18:51   #2  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5788 (200) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Цитата:
Сообщение от susenyudha Посмотреть сообщение
I have a problem when I insert record into table from outside of AX, can I do insert() method on axapta? I want to check something on insert() method, can I ?
So you're using AX Business Connector to insert a new record in a table, right? You don't mention which version of Axapta you're using and what kind of Business Connector (COM or .NET), so let's take .NET Business Connector for instance. AFAIK when you call AxaptaRecord.Insert(), it internally calls the insert() method on the table. Hence you can add any checks to the insert() method in the application and these checks or whatever code you add will be automatically invoked when you insert a record using AX Business Connector.
And in case you mean you insert a new record via a direct SQL connection to an AX database the answer is: stop doing this immediately and use AX Business Connector instead.