Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I have already implement XDS Security Policy for invent location and is working fine.
In my transfer order form, I want to restrict my fromWarehouse lookup and it is working fine
For Towarehouse I bypass XDS by adding the below code.
public void lookup(FormControl _formControl, str _filterStr)
XDSServices xXDS = new XDSServices();
xXDS.setXDSState(0); // Disable XDS
xXDS.setXDSState(1); // Enable XDS
It is working fine for lookup but when I try to filter lookup by ctrl+G It did not find the restricted warehouses.
Please help me in this regard how can I override Filter or search method to bypass XDS.
What exactly do you mean with the filtering that it did not find the restricted warehouses? Is it in the lookup form or the transfer orders? Did it find other warehouses? Can you possibly also share a screenshot?
Thank You Andre Arnaud de Calavon,
Here Lahore is restricted through XDS (restricted warehouse) but I have bypass xds for To warehouse. which means Lahore is available in lookup but when I search through ctrl+G It did not find it.
how to override this search option.
I do understand that Lahore should not be visible in the From warehouse, but it should be visible in the To warehouse.
Your coding is relaxing the XDS policy on the form, but a new instance is created when opening the lookup form. I do think you can solve it with creating a lookup in coding using x++ instead of using the standard lookup form. You can also create a new lookup form which you can link to the field for lookup on the To warehouse. Then on this new lookup form, you can use coding to disable the XDS policy temporary.
I do think the easiest it to created a lookup with x++ coding. Here is an example: community.dynamics.com/.../ax-2012-create-lookup-in-x
Thank You Andre,
As Per your suggestion I have created a lookup form
And bypass executes query method for xds and now search is also working.
Business Applications communities