Dear All
I have make make query using X++ join three table but desire result not showing
Please help me and let me know is it ok ??
qbdsCustInvoiceJour = query3.addDataSource(tableNum(CustPackingSlipJour));
qbdsCustInvoiceJour.relations(true);
qbdsCustInvoiceJour.joinMode(JoinMode::InnerJoin);
qbdsCustTable=qbdsCustInvoiceJour.addDataSource(tableNum(CustTable));
qbdsCustTable.relations(true);
qbdsCustTable.joinMode(JoinMode::InnerJoin);
qbdsGatePassLine = qbdsCustInvoiceJour.addDataSource(tableNum(GatePassLine));
qbdsGatePassLine.relations(true);
qbdsGatePassLine.joinMode(JoinMode::NoExistsJoin);
qbdsGatePassLine.fields().addField(fieldNum(GatePassLine,InvoiceId));
qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,PackingSlipId));
qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,SalesId));
qbdsCustInvoiceJour.fields().addField(fieldNum(CustPackingSlipJour,InvoiceAccount));
qbdsCustTable.fields().addField(fieldNum(CustTable,AccountNum));
Customerqbr= qbdsCustTable.addRange(fieldNum(CustTable,CompanyChainId));
Customerqbr.value(queryValue(("GDN GP")));
*This post is locked for comments