Posts

Showing posts from October, 2020

How to add custom lookup (Multi tables)in Dynamics AX 2012 Through X++

  How to add custom lookup (Multi tables)in Dynamics AX 2012 Through X++ public static void lookupInvoice(FormControl _formControl, str _filterStr) {     Query                                           query                               = new Query();     QueryBuildDataSource            qbds;     QueryBuildDataSource            qbds_HcmWorker;     QueryBuildDataSource            qbds_DirPerson;     SysMultiTableLookup             SysMultiTableLookup;     qbds                                   = query.addDataSource(tableNum(CustInvoiceJour));     qbds_HcmWorker          = qbds.addDataSource(tableNum(HcmWorker));     qbds_HcmWorker.joinMode(JoinMode::InnerJoin);     qbds_HcmWorker.addLink(fieldNum(CustInvoiceJour, WorkerSalesTaker), fieldNum(HcmWorker, RecId));     qbds_DirPerson          = qbds_HcmWorker.addDataSource(tableNum(DirPerson));     qbds_DirPerson.joinMode(JoinMode::InnerJoin);     qbds_DirPerson.addLink(fieldNum(HcmWorker, Person), fieldNum(DirPerson, RecId));     SysMultiT