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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.03.2016, 22:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
kurthatlevik: AX RTW Hack to enable unsupported countries
Источник: https://kurthatlevik.wordpress.com/2...ted-countries/
==============

We have learned that today the RTW is officially released, but this is mainly for the “tier-1” countries. I’m a bit jealous on Denmark and Iceland that are in the first support release wave, and that Norway have to wait until H2 2016 to get country specific support. But when I dig into the AX RTW I will find much of the country specific elements already in place. They have been included in the transfer from AX 2012.

Only one small Issue. Microsoft have hardcoded that the unsupported features cannot be used. I guess (and hope) that it is for a reason. If you try to create an unsupported company for Finland, you get;



Many of the localized fields needed to run Finland is then hidden or disabled.

But there is a way to “Hack” this. Comment out your country from SysCountryRegionCode.onCountryRegionSupportedCheck():




Then compile and deploy. Then the fields related to Finland etc will open up.





I know I’m are moving into uncharted terrain, and this is disabled for a reason. But we start already now to promote and sell AX 7, and then we expect Microsoft to stick to the release schedule, and make the Dynamics AX ready for all countries as planned. We also have several customers that don’t need the localized company specific functionality, and they don’t want to be constantly reminded J.

Disclaimer; If you do this for a production environment you are on your own!

Hacking Dax’ing




Источник: https://kurthatlevik.wordpress.com/2...ted-countries/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 10.03.2016, 13:28   #2  
JohnDo is offline
JohnDo
Участник
 
10 / 14 (1) ++
Регистрация: 14.12.2004
Адрес: Киев
Старый добрый подход, изменить исходник

Как мне кажется лучший способ перекрыть это событие создав свой метод обработки .

X++:
[SubscribesTo(classStr(SysCountryRegionCode), staticDelegateStr(SysCountryRegionCode, onCountryRegionSupportedCheck))]
    public static void SysCountryRegionCode_onCountryRegionSupportedCheck(LogisticsAddressCountryRegionISOCode _countryRegionCode, EventHandlerResult _ret)
    {
       if (_countryRegionCode == "MyCode")
          _ret.booleanResult(true);
    }

Последний раз редактировалось JohnDo; 10.03.2016 в 13:44.
За это сообщение автора поблагодарили: gl00mie (3).
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
kurthatlevik: New Microsoft Dynamics AX – A guide for using retail sales prices and discounts Blog bot DAX Blogs 0 01.12.2015 18:12
emeadaxsupport: AX Performance - What information and data to collect when you want to open a support case Blog bot DAX Blogs 0 29.09.2015 15:11
kurthatlevik: Dynamics AX 2012 R3: Global recommended retail price Blog bot DAX Blogs 0 14.10.2014 11:11
emeadaxsupport: AX Performance Troubleshooting Checklist Part 1A [Introduction and SQL Configuration] Blog bot DAX Blogs 0 05.09.2014 21:11
kurthatlevik: AX 2012 R3 : Do not enable WMS-II and the new Warehouse and Transportation management in the same installation Blog bot DAX Blogs 0 15.05.2014 19:11

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

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

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