Tuesday 12 May 2015

Temporarily disable XDS in AX 2012?

Use the following code as an example:



public void lookup(FormControl _formControl, str _filterStr)
{
    XDSServices XDS = new XDSServices();

    XDS.setXDSState(0); // Disable XDS
    super(_formControl, _filterStr);
    XDS.setXDSState(1); // Enable XDS
}