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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.11.2019, 20:41   #1  
axm2017 is offline
axm2017
Участник
 
2,066 / 296 (14) ++++++
Регистрация: 15.05.2017
Проблема же не в добавлении записи, а в том что PackedExtensions пустой. Заполняется это поле имхо не на update.
Старый 11.11.2019, 23:05   #2  
alicedr is offline
alicedr
Участник
 
175 / 43 (2) +++
Регистрация: 06.07.2012
Адрес: Канада
насколько я вижу, заполняется поле тут (в дебаггере вижу что таки заполняется):
X++:
class MCRPaymentReview
{
/*...................................*/
public static boolean outOfBalance(MCRCustPaymTotals _mcrCustPaymTotals,
                             AmountCur _overUnderPaymAmount = 0,
                             AmountCur _totalSalesAmount = 0)
    {
/*.....................................*/
else
        {
            // Update back status gets called from so many places that a new
            //                      enum value was added so that only end order can put a
            //                      sales order on out of balance "hold".
            //                   So once end order validates that this is not out of balance
            //                      make sure that it doesn't happen again unless the order
            //                      is modified.
            mcrSalesTable.OutOfBalanceReleased = MCROutOfBalanceReleaseType::Verified;
        }

        ttsBegin;
        if (salesTable.validateWrite())
        {
            salesTable.mcrPackMCRSalesTable(mcrSalesTable);   //<<----------------------------
            salesTable.update();
        }
        else
        {
            throw error("@SYS104318");
        }

        ttsCommit;

        return isValid;
X++:
public class SalesTable extends common
{
/*....................................*/
    /// <summary>
    /// Packs the retail sales table extension table into <c>MCRSalesTable</c> field.
    /// </summary>
    /// <param name="_mcrSalesTable">
    /// Extension table to be packed.
    /// </param>
    public void mcrPackMCRSalesTable(MCRSalesTable _mcrSalesTable)
    {
        _mcrSalesTable.SalesTable = this.RecId;
        this.SysExtensionSerializerMap::packExtensionTable(_mcrSalesTable);
    }
Теги
mcrsalestable, packedextensions, sysextensionserializermap

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
sertandev: How to receive D365FO push notifications using Azure Notification Hubs Blog bot DAX Blogs 0 04.07.2019 18:11
sertandev: How to integrate D365FO with Microsoft Flow using the new Business Events Blog bot DAX Blogs 0 23.05.2019 16:11
d365technext: Pass field value from SalesTable to CustTrans in AX 2012 & D365FO Blog bot DAX Blogs 0 15.11.2018 09:11
erconsult: Copy-paste with keyboard script 2: from Excel to D365FO Blog bot DAX Blogs 0 03.08.2018 11:12
littleax: Part1. Dynamics ax 2012. Split construct method by models. Blog bot DAX Blogs 0 28.05.2014 10:11

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

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

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