Hi All,
I want to create a dialog box using classes .In that, I've Site & warehouse field.
In Dialog, If I choose site, warehouse field has to show only already selected site(warehouse).
Kindly let me know, How to achieve it?
Thanks in advance
First of all, you need to develop a lookup method that provides you warehouses for selected sites.
Then you need to attach this lookup method to your warehouse field.
- If you use a dialog form, you simply override the lookup method of the Warehouse field.
- If you use Runbase dialog, you can check this discussion on how to override the lookup method: axforum.info/.../showthread.php
- If you use a SysOperation dialog, you can check this article on how to override the lookup method: https://community.dynamics.com/ax/b/klaasdeforche/posts/ax2012-sysoperation-part-3-sysoperationautomaticuibuilder
Hi,
And there is already standard method to lookup warehouses by siteId, InventLocation::lookupBySiteIdAllTypes.
Hi Vignesh,
To lookup inventLocation by inventSite, Please read these blog:
community.dynamics.com/.../lookup-inventlocation-by-inventsite-on-method-lookup-field-datasource-form-example
https://aristonjavier.wordpress.com/2019/09/25/d365fo-performs-invent-locations-lookup-by-inventsiteid/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 683 Most Valuable Professional
André Arnaud de Cal... 563 Super User 2025 Season 2
Sohaib Cheema 398 User Group Leader