The trouble is you think you have time. Your success depends on how you utilize your time.

MuliSelect Lookup X++ Finance and Operations

 MuliSelect Lookup X++ Finance and Operations


container inventLocationContainer ;
QueryBuildDataSource qbds;      
Query query;
query = new query();
qbds = query.addDataSource(tableNum(MZNUKCATEGORYTABLE));       
query.dataSourceTable(tableNum(MZNUKCATEGORYTABLE)).addSelectionField(fieldNum(MZNUKCATEGORYTABLE, CategoryName));
query.dataSourceTable(tableNum(MZNUKCATEGORYTABLE)).addSelectionField(fieldNum(MZNUKCATEGORYTABLE, Description));
qbds.addRange(fieldNum(MZNUKCATEGORYTABLE, CategoryName)).value(queryValue('QA NEW ENAMEL HALL'));
qbds.addRange(fieldNum(MZNUKCATEGORYTABLE, CategoryName)).value(queryValue('QA PREMINUM HALL'));
qbds.addRange(fieldNum(MZNUKCATEGORYTABLE, CategoryName)).value(queryValue('QA NC HALL'));
qbds.addRange(fieldNum(MZNUKCATEGORYTABLE, CategoryName)).value(queryValue('QA ENAMEL HALL'));
QueryRun queryRun = new QueryRun(query);
SysLookupMultiSelectGrid::lookup(query,_control, _control, _control, inventLocationContainer, queryRun);

No comments:

Post a Comment