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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.09.2013, 06:16   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: AX for Retail 2012 R2: Using the Extensions folder for POS Customizations
Источник: http://blogs.msdn.com/b/axsupport/ar...mizations.aspx
==============

One great feature we added in AX for Retail 2012 R2 was a nice place for developers to drop in customizations without overwriting existing services and triggers.  If you have read my earlier AX for Retail: Managing and Maintaining POS Customizations article you know that a shortcoming of previous versions of the POS required you to replace a service or trigger that Microsoft shipped with one of your own.  For example, if you needed a customized Price Service you needed to create your own Price.dll and copy it over the version of the DLL that ships with the product.

This really becomes a problem as you deploy hotfixes.  If Microsoft creates a hotfix that updates our version of the Price.dll, the installer may delete your version of the file and you would have to copy yours over again.  Furthermore, rolling back a customization for testing purposes is difficult:  you need to keep a copy of the non-custom version of the DLL and copy it over your version of the DLL.  It can get pretty messy pretty quickly.

Introducing the Extensions Folder

When you install AX for Retail 2012 R2 POS you will notice that there is now an Extensions folder with a single ReadMe.txt file:



Here are the contents of that file:
Place all Retail POS customizations to services and triggers, as well as any added code in this folder. If you use this folder you don’t need to replace or remove existing services or triggers from their respective folders. Single instance interfaces (such as ICustomer) use this folder first for loading interface implementations.

Multi-instance interfaces (such as IBlankOperation or any of the trigger interfaces) load both the interfaces in this folder and the interfaces in the core implementation.

There are a couple of interesting things to note here.

First of all, you no longer have to worry about the files in the \Services or \Triggers folders.  You can let the Dynamics AX installer do what it needs to for any of those folders.  Just drop in your custom DLLs, restart the POS, and voila, your customization is enabled.  Want to test to see if your customization is causing a problem?  Just delete it from this directory and restart the POS.  You’re back to the standard version of the application.

Secondly, note that there is no mention of file names.  The POS now loads services and triggers based on whether they properly implement the interface, not based on file name.  This means you can rename your assembly to call out your company name or purpose of the customization to keep track of them more easily.

This is a great new feature for developers and system administrators.  You will still need to make sure that hotfixes don’t affect customizations (see the three-way code merge from the article above) but this will save some time.

Here are a few screenshots of the Extensions folder in action:


















Источник: http://blogs.msdn.com/b/axsupport/ar...mizations.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Final Microsoft Dynamics AX 2012 R2 Content Available! Blog bot DAX Blogs 0 04.12.2012 06:12
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11

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

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

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