[DataField]
class InvoiceId
{
/// <summary>
///
/// </summary>
/// <param name = "_formControl"></param>
/// <param name = "_filterStr"></param>
public void lookup(FormControl _formControl, str _filterStr)
{
//super(_formControl, _filterStr);
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(CustInvoiceJour), _formControl);
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
QueryBuildRange queryBuildRange;
queryBuildDataSource = query.addDataSource(tableNum( CustInvoiceJour));
queryBuildRange = queryBuildDataSource.addRange(fieldNum(DTDMCHeader, inventLocationId));
queryBuildRange.value(queryValue(DTDMCHeader.inventLocationId));
// Add the lookup columns
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, InvoiceId));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, SalesId));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, InvoiceAccount));
sysTableLookup.addLookupfield(fieldNum(CustInvoiceJour, inventLocationId));
// Run the lookup
sysTableLookup.performFormLookup();
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,902 Super User 2024 Season 2
Martin Dráb 229,302 Most Valuable Professional
nmaenpaa 101,156