axapta - Custom lookup select issue -
the idea contruct lookup unique employer name. lookup works fine when select value , select lookup button again , click on place marked in red, there duplicate values, wrong.
kindly refer snippet , snapshot
querybuilddatasource qbds; query query = new query(); formstringcontrol control = dialog.formrun().controlcallingmethod(); systablelookup systablelookup = systablelookup::newparameters(tablenum(vendtable), control); ; qbds = query.adddatasource(tablenum(vendtable)); qbds.addgroupbyfield(fieldnum(vendtable,employername)); systablelookup.addlookupfield(fieldnum(vendtable, employername)); systablelookup.parmquery(query); systablelookup.parmuselookupvalue(false); systablelookup.performformlookup();
tion here]2
make view on table vendtable
, field employername
and count of recid, base lookup on view.
as shown below custtable
, custgroup
:
Comments
Post a Comment