Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

How to add address in VendBankAccounts form in dynamics 365 finance and operations

Posted on by 264

Hello all, Am struck with one of my task. 

I have VendBankAccounts form, there is address tab where we can enter the address. 

Now am asked to create one more tab for the additional address to create. so i have done the replica as how we get the address in the address tab by adding separate field for address and mapped it. I am struck at some point, whatever the address that am giving in the custom tab, it is reflecting in the address tab as well. but the address that i enter in the custom tab should not effect the address tab.

I tried by taking references from few articles. Sharing it below.

THOMAS WILKE's DYNAMICS AX / D365fO BLOG: Add a single postal location to an ax 2012 form (axbloggerblog.blogspot.com)

How to add Standard Address fields into a new table [Dynamics365/AX7] - Dynamics 365 Finance Community

I request someone to guide me how to add the address from scratch.

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    Hi Rafia,

    I just posted a solution for something similar in this thread. Please try and let me know if this works for you.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    Hi Rafia,

    You are having the issue due to how the form "LogisticsPostalAddressSingle" has been designed. If you look at buildLogisticsPostalAddressQuery method in the form, which is called from LogisticsPostalAddress\executeQuery method, they are using the location field for linking the caller data source (since VendBankAccount has mappings to LogisticsLocationMap).

    pastedimage1643025308240v1.png

    If you want to use the same form to display the address, you might do that by creating a new menu item (copying LogisticsPostalAddressSingleFormPart), and using this is the custom tab. The next step would be to create a CoC on the buildLogisticsPostalAddressQuery method and check if the caller menu item is the new menu item you created. Based on this condition you can change the field value in the range.

    It might be simpler to add LogisticsPostalAddress as a data source to this form and use the same for displaying addresses. You can check how this has been done in ProjTable form

    pastedimage1643025787821v3.png

  • Dishen Profile Picture
    Dishen 264 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    Hello Gunjan Bhattacharyya ,

    Yes! i have changed with my custom field, but no luck.

    The data what am modifying in the custom tab i can see the same in address tab as well.

    could you please provide me any other solution if you are aware of?

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,417 on at
    RE: How to add address in VendBankAccounts form in dynamics 365 finance and operations

    Hi Rafia,

    In the form part in the custom tab, which you duplicated from the original control, did you set the form part link to point to your new address field instead of "Location"?

    pastedimage1643018113712v1.png

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans