AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: За рубежом > DAX in English
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.09.2006, 09:42   #2  
raz is offline
raz
NavAx
Аватар для raz
NavAx Club
Лучший по профессии 2014
Лучший по профессии 2009
 
1,499 / 1097 (39) ++++++++
Регистрация: 22.07.2003
Адрес: МО
Read AxDvgCOMUs.chm

IAxaptaRecord::Update
HRESULT Update(void);

Updates the Microsoft Axapta record; that is the record is transferred to the database.

Return Value
The return value obtained from the returned HRESULT is one of the following:

Return value
Meaning

S_OK
Success

E_FAIL
General failure

AXAPTA_E_NO_SECURITY_KEY
The security key for updating records through the Axapta Business Connector is disabled

AXAPTA_E_RECORD_NOT_VALID
Microsoft Axapta record is not valid. The IAxapta object has properly logged off (IAxapta::Logoff)

Comments
This method resembles calling the update member method of a record in the Microsoft Axapta X++ language.

Example (Visual Basic)
Dim Axapta As Object

Dim MyRecord As Object

Set Axapta = CreateObject("AxaptaCOMConnector.Axapta")

Axapta.Logon

‘ create an Axapta record
Set MyRecord = Axapta.CreateRecord("MyTable")

‘ select a record
MyRecord.ExecuteStmt "select * from %1 where %1.Name == ‘MyName’"

‘ set fields of record
MyRecord.Field("Name") = "MyNewName"
MyRecord.Field("Address") = "MyNewAddress"

‘ update the record
MyRecord.Update
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Arijit Basu: DAX 4.01 .NET Business Connector: Microsoft.Dynamics.BusinessConnectorNet Blog bot DAX Blogs 3 30.09.2008 01:17
Inside Dynamics AX 4.0: Working with the .NET Business Connector Blog bot DAX Blogs 0 04.10.2007 05:15
Inside Dynamics AX 4.0: Inside the Business Connector Blog bot DAX Blogs 0 04.10.2007 05:15
ALEG: Проект "Фишка недели" и первый пост - Microsoft Dynamics™ AX .NET Business Connector Blog bot DAX Blogs 1 22.11.2006 09:43
ProductiveGap: Microsoft's Leadership in Business Applications Usability Blog bot DAX Blogs 0 09.11.2006 08:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:41.