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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.06.2018, 03:25   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
Extensions and Edit and Display methods declaration in D365
Источник: http://alexvoy.blogspot.com/2018/06/...y-methods.html
==============

Just a short note for my current PU.

Display methods work well as instance methods from table extensions. As to edit-methods, we still need to declare them as static.


[ExtensionOf(tableStr(ProjProposalJour))]
final class avrProjProposalJourTable_ProjInvReport_Extension

static public server edit avrProjInvReportFmtDescWithBr avrEditInvReportFormatWithBR(ProjProposalJour _this, boolean _set, PrintMgmtReportFormatDescription _newReportFormat)
{
PrintMgmtReportFormatDescription newReportFormat = _newReportFormat;
PrintMgmtReportFormatDescription reportFormat;

reportFormat = ProjInvoicePrintMgmt::avrGetReportFormatWithBR(_this);
if (_set)
{
if (_this.RecId && newReportFormat && newReportFormat != reportFormat)
{
ProjInvoicePrintMgmt::avrCreateOrUpdateInvoiceWithBRPrintSettings(_this, PrintMgmtNodeType::ProjProposalJour, newReportFormat);
reportFormat = newReportFormat;
}
}
return reportFormat;
}



Do not forget to pass the table buffer as the first argument.

More detail can be found in Vania's article about news in PU11.




Источник: http://alexvoy.blogspot.com/2018/06/...y-methods.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Kashperuk Ivan: Development Tutorial: Extensibility: Adding a table display/edit method and showing it on a form in PU10 Blog bot DAX Blogs 20 07.10.2017 12:42
sertandev: AX7 Extensibility Overview – Part 2 : Code extensions Blog bot DAX Blogs 0 28.08.2017 19:11
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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