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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.12.2016, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Easily Add Addresses Fast Tab in Dynamics 365 for Operations with Logistics Postal Address Grid
Источник: https://stoneridgesoftware.com/easil...-address-grid/
==============

*Please note: New Dynamics AX (AX7) has been renamed Dynamics 365 for Operations.

Adding an Addresses Fast Tab to a form in Microsoft Dynamics 365 for Operations (AX7) is now as easy as adding the new LogisticsPostalAddressFormGridPart to your form and setting a few properties. The only requirement is that you have an entity that is mapped to DirPartyPostalAddressView (via DirPartyMap). I am creating a custom entity, SSILienHolder, that has a relationship to DirPartyTable, so I will leverage that relationship to manage my addresses.



To use, Create an Address Fast Tab and drop a FormContainerControl on it. The FormContainerControl is a new control that hosts another form as a control allowing you to build reusable user-interface components.



Once you’ve added the control, set the MenuItemName property to “LogisticsPostalAddressGridFormPart” and Run Mode to “Local”. This will tell the control to load the LogisticsPostalAddressGrid form and display it in the Fast Tab.

Next, expand the FormContainerControl and add a new “Field relation link”. Similar to a relation on a Table, this is the glue that tells the control how to navigate from your table to the DirPartyPostalAddressView. You need to set the DataField, DataSource, TargetDataField, and TargetDataSource properties on the link.



When the FormContainerControl instantiates the form, it uses the data from the Field relation link to populate an Args class for the form. If you look at the design of the LogisticsPostalAddressGrid form, you will see that it has 2 form data sources, Common and DirPartyPostalAddressView. The Common data source acts as a proxy for the data source you pass to the Field relation link. When the form loads, it assigns your table buffer to the Common data source and adjusts the relationship to DirPartyPostalAddressVew using the DirPartyMap.



Now when you run your form, you have a fully-functional Addresses Fast Tab.





Источник: https://stoneridgesoftware.com/easil...-address-grid/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
stoneridgesoftware: Microsoft Dynamics 365 Roadmap Site – a Helpful Perspective Blog bot DAX Blogs 0 09.12.2016 19:12
stoneridgesoftware: Dynamics 365 and Microsoft AppSource – What does it mean for clients? Blog bot DAX Blogs 0 14.07.2016 01:14
atinkerersnotebook: Using Excel to Import Customers and Vendors in Dynamics AX 2012 Blog bot DAX Blogs 0 19.07.2013 15:11
Microsoft Dynamics CRM Team Blog: Fast, Efficient Growth for Project Management Solution - Case Studies Blog bot Dynamics CRM: Blogs 0 01.02.2012 03:18
Developer for Microsoft Dynamics AX Certification Roadmap Blog bot DAX Blogs 1 13.05.2009 16:17
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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