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.
I request someone to guide me how to add the address from scratch.
Hi Rafia,
I just posted a solution for something similar in this thread. Please try and let me know if this works for you.
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).
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
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?
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"?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156