public void dialogCustVendRel_lookup(FormStringControl _control)
{
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
SysTableLookup sysTableLookup;
sysTableLookup = SysTableLookup::newParameters(tableNum(VendTable), _control);
sysTableLookup.addLookupField(fieldNum(VendTable, AccountNum));
sysTableLookup.addLookupMethod(tableMethodStr(VendTable, name));
// Setup query
queryBuildDataSource = query.addDataSource(tableNum(VendTable));
sysTableLookup.parmQuery(query);
// Perform lookup
sysTableLookup.performFormLookup();
}
}
Comments
Post a Comment