Hi Sergei,
Just one more question. If lets say I want to extend the query, to add another table linked to this HCMWorker the 3rd table and then after that another table. Should all need to have the 3rd parameter ?
So probably like this :
query = new Query();
// Add a datasource to the query
qbds = query.addDataSource(tableNum(CaseDetailBase));
qbds1 = qbds.addDataSource(tableNum(CaseCategoryHierarchyDetail));
qbds1.addLink(fieldNum(CaseDetailBase,CategoryRecId ), fieldNum(CaseCategoryHierarchyDetail, RecId));
qbds1.joinMode(JoinMode::InnerJoin);
qbds2 = qbds1.addDataSource(tableNum(HcmWorker));
qbds2.addLink(fieldNum(CaseDetailBase, OwnerWorker), fieldNum(HcmWorker, RecId), qbds.name());
qbds2.joinMode(JoinMode::OuterJoin);
qbds3 = qbds2.addDataSource(tableNum(DirPerson));
qbds3.addLink(fieldnum(HcmWorker, Person), fieldNum(DirPerson, RecId));
qbds3.joinMode(joinmode::OuterJoin);
qbds4 = qbds3.addDataSource(tableNum(DirPartyTable));
qbds4.addLink(fieldNum(DirPerson, RecId), fieldNum(DirPartyTable, RecId));
qbds4.joinMode(joinmode::OuterJoin);
Should all the "addlink" (in green) have the 3rd parameters ? I believe it's "no", right ?
Many thanks in advance,