qbdsCIJ = newQuery.dataSourceTable(tableNum(CustInvoiceJour)); // data source found
qbdsNSN = qbdsCIJ.addDataSource(tableNum(NSNProcessed)); // here the newQuery gets "empty" - with only the new NSNProcessed table as a datasource
qbdsNSN.relations(true);
qbdsNSN.joinMode(JoinMode::NoExistsJoin);
qbdsNSN.addRange(fieldNum(NSNProcessed, WorkRequest)).value(queryValue(WorkReqNo));


Report
All responses (
Answers (