Lookup method in D365FO. This lookup is developed by SysTableLookup class. Below code is the simple code.
Query query = new Query(); QueryBuildDataSource qbds; SysTableLookup syslookup; syslookup= SysTableLookup::newParameters(tableNum(InventSite), this);//Sender syslookup.addLookupfield(fieldNum(InventSite, SiteId)); syslookup.addLookupfield(fieldNum(InventSite, Name)); syslookup.addLookupMethod(tableMethodStr(InventSite, Method)); qbds = query.addDataSource(tableNum(InventSite)); qbds.addRange(fieldNum(InventSite, Active)).value(queryValue(NoYes::Yes)); syslookup.parmQuery(query); syslookup.performFormLookup();
Keep Daxing !!
No comments:
Post a Comment