BLVCKFX
2/5/2019 - 10:35 AM

[lookup()] lookup method table #lookup#method

[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();
}