[lookup()] lookup method table #lookup#method
public static void lookupDlvTerm(FormStringControl _ctrl, A_SalesQuotationTable _salesQuotationTable)
{
QueryBuildDataSource queryBuildDataSource;
Query query = new Query();
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(DlvTerm), _ctrl);
queryBuildDataSource = query.addDataSource(tableNum(DlvTerm));
sysTableLookup.addLookupfield(fieldNum(DlvTerm, Code));
sysTableLookup.addLookupfield(fieldNum(DlvTerm, Txt));
sysTableLookup.addSelectionField(fieldNum(CustTable, DlvTerm));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}