How to add 2 drop-downs of warehouses and sites linked to selected-warehouse to a form (SalesPool)
A warehouse belongs to a single site; it's the site who can have multiple warehouses.
If you have InventLocationId on SalesPool, you don't need any field for a site, because it's already uniquely identified by the warehouse (InventLocation.InvensSiteId).
If you really want both the site and the warehouse, you can create a relation for warehouses that links both InventLocationId and InventSiteId. And alternative is overriding the lookup() method for warehouses and adding a query range with the value of the site.
Was this reply helpful?YesNo
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.