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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 20.01.2009, 09:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,640 / 848 (80) +++++++
Регистрация: 28.10.2006
Dianne Siebold: Rec Fields Required in AIF Partial Update
Источник: http://blogs.msdn.com/dsiebold/archi...al-update.aspx
==============

I was included in an e-mail thread recently that discussed what fields are needed in a partial update. To make a long story short, you need the _DocumentHash field as well as the RecId and RecVersion fields for each entity being updated.



Partial updates were introduced in AIF in Microsoft Dynamics AX 2009 so that you could send selective updates and not have to send an entire document (all fields for all entities) to update a single field.



When performing an update, the typical process is: (1) read the data, (2) make changes, (3) send the changes back to Dynamics AX. When you read the data, a field called _DocumentHash is returned in the parent entity. This field is used for concurrency so if any one of the records in the update changes in between the time the data was read and the time the changes were sent to AX, an error is generated.



In addition to the _DocumentHash field in the parent record, you also need to send the RecId and RecVersionId for each child record being updated. The attached graphic is an example of XML generated for a partial update to a customer record. For more information about the document hash and concurrency, see Concurrency When Updating Data.



Источник: http://blogs.msdn.com/dsiebold/archi...al-update.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dianne Siebold: Video About the AIF Services and WCF Blog bot DAX Blogs 0 11.10.2008 07:43
Dianne Siebold: AIF Code Samples Available for Download Blog bot DAX Blogs 0 22.08.2008 09:05
Dianne Siebold: Guide to AIF Documentation Available Blog bot DAX Blogs 0 25.06.2008 06:14
Dianne Siebold: AIF Top Ten Blog bot DAX Blogs 1 22.04.2008 11:19
Dianne Siebold: Update on the Dynamics AX SDK Team kashperuk DAX Blogs 1 16.10.2007 08:23

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

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

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