Hi guys,
i have a vendor lookup in the Account no and Name but, name is display methods we can't filter records in the lookup Ex Ctrl+G
what to be done?
SysTableLookup Lookup;
QueryBuildDataSource qbds;
Query query = new Query();
Lookup = SysTableLookup::newParameters(tableNum(VendTable), _control);
Lookup.addLookupField(fieldNum(VendTable,AccountNum));
Lookup.addLookupMethod('name');
qbds = query.addDataSource(tableNum(VendTable));
//qbds.addRange(fieldNum(VendTable,Country)).value(queryValue(country));
Lookup.parmQuery(query);
Lookup.performFormLookup();