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