Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All 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