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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.10.2018, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
sertandev: Recent news on Dynamics 365 FO code extensibility
Источник: http://devblog.sertanyaman.com/2018/...extensibility/
==============

To keep this blog up to date I would like to mention some changes done in code extensibility of D365 for Finance and Operations since my last post about D365FO extensibility, AX7 (D365) Chain of command with examples, in November 2017.



Replaceable keyword

In chain of command method extensions, now you are able to skip calling the base method (next call) by adding “Replaceable” attribute to the base method. This is added by Microsoft because of the high demand from the D365FO community for the ability to suppress the original method call when extending a method using chain of command. This attribute is available from on Platform Update 11.

class Demo{ [Replaceable] protected void replaceMe(int _i) { //base call error(int2str(_i)); }}[ExtensionOf(classStr(demo))]final class Demo_Extension{ protected void replaceMe(int _i) { info(int2str(_i)); //and you do not have to call next! }}For more information, check the following blog post about the new Replaceable keyword:

http://kashperuk.blogspot.com/2017/1...ibility_7.html

Extensions for form datasources, data fields and form controls

From on Platform Update 17, you can extend the methods on form nested objects using the extension syntax shown below :

Form data sources:

[ExtensionOf(formdatasourcestr(DemoForm, DataSource1))]final class DemoFormDataSource1_Extension{ public int active() { next active(); }}Data source data fields:

[ExtensionOf(formdatafieldstr(DemoForm, DataSource1, Field1))]final class DemoFormField1_Extension{ public boolean validate() { boolean ret ret = next validate();return ret; }}Form controls:

[ExtensionOf(formcontrolstr(DemoForm, Button1))]final class DemoButton1_Extension{ public void clicked() { next clicked(); }}For more information, you can check the updated chain of command help from Microsoft :

https://docs.microsoft.com/en-us/dyn...te-16-or-later

Ability to override forms design pattern from form extensions

From on Platform Update 17, you can change the form design pattern to “Custom” from a form extension, to be able to add your extended controls in a more flexible manner. This solves the problem that you get form pattern related errors when you try to add new extension controls on a form with a fixed, not changeable pattern :







Источник: http://devblog.sertanyaman.com/2018/...extensibility/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
survivingcrm: What’s An “App” in Dynamics 365 Anyway? Blog bot Dynamics CRM: Blogs 0 06.01.2018 22:14
stoneridgesoftware: Microsoft Dynamics 365 – Right around the Corner Blog bot DAX Blogs 0 10.10.2016 21:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2009 Blog bot Dynamics CRM: Blogs 0 04.06.2010 13:21
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, время: 08:19.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.