Form data source overwrite lookup || AX 2012

You can use the following code overwriting the default lookup method on a form data source field:   public void lookup(FormControl _formControl, str _filterStr) { Query query = new Query(); QueryBuildDataSource qbds; QueryBuildDataSource qbdsJoin; // Instantiate sysTableLookup object using table which will provide the visible fields SysTableLookup sysTableLookup = sysTableLookup::newParameters(tableNum(VendTable), _formControl); ;   qbds= query.addDataSource( … Read moreForm data source overwrite lookup || AX 2012