Easily Add Addresses Fast Tab in Dynamics 365 for Operations with Logistics Postal Address Grid

By Mark Nelson | December 22, 2016

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.

logistics_mark

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.

logistics_mark-2

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.

logistics_mark-3

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.

logistics_mark-4

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

logistics_mark-5


Under the terms of this license, you are authorized to share and redistribute the content across various mediums, subject to adherence to the specified conditions: you must provide proper attribution to Stoneridge as the original creator in a manner that does not imply their endorsement of your use, the material is to be utilized solely for non-commercial purposes, and alterations, modifications, or derivative works based on the original material are strictly prohibited.

Responsibility rests with the licensee to ensure that their use of the material does not violate any other rights.

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!