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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.02.2017, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
organicax: cXML Purchase Send – Merge objects overview
Источник: https://organicax.com/2017/02/08/cxm...ects-overview/
==============

The following code changes are made in the merged objects. It’s probably more efficient to add these manually without going through the trouble of trying to merge into you environment and there are only four objects to modify with some minor changes.

VendTable.

There changes to the VendTable are minimal with the addition of a new field. First modify the VendTable. There is a new field here called cXMLOrderEnable which is based on the EDT cXMLOrderEnable which is included in the CXMLPurchaseRequest project. This fields base been added to the PurchaseOrder field group so it will display on the VendTable form and avoid making the need for a form modification.



PurchTable

Second modify the PurchTable to add the same field based on the same data type cXMLOrderEnable. This will be copied from the VendTable in the initFromVendTable method when a purchase order is created.



The code change in the initFromVendTable method is one line of code as seen in the compare. You can add this code at the bottom of the method.

this.cXMLOrderEnable = _vendTable.cXMLOrderEnable;



VendPurchOrderJour

The third change is a new override on the insert method for the VendPurchOrderJour table. This has one line of code as you can see in the compare. This makes a call to a class that is provided in the CXMLPurchaseRequest project.

public void insert()

{

super();

cXMLPurchRequestMaintain::UpdateOrderJour(this);

}



PurchCancel

The fourth change is code to record when a purchase order is cancelled. This is made by an ammendment to the run method on the PurchCancel class.

//Mark request deletion.

cXMLPurchRequestMaintain::MarkforDelete(purchTable.PurchId);



Refer to this post for an overview of the cXML Purchase Order Send.

https://organicax.com/2017/02/08/cxm...-ax2012-r3-v1/



Cheers

Lachlan




Filed under: Procurement and sourcing

Источник: https://organicax.com/2017/02/08/cxm...ects-overview/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
organicax: cXML punchOut protocol handler for AX2012 Blog bot DAX Blogs 0 27.09.2016 14:11
organicax: cXML punchout protocol handler installation for AX2012 R3 Blog bot DAX Blogs 0 27.09.2016 14:11
dynamicsaxtraining: Vendor returns Blog bot DAX Blogs 0 11.10.2012 00:11
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 12:13.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.