Dear All,
I wrote below query and it's working fine. I have one question when to make it datasource.relations(True) OR datasource.relations(false) ?
static void TM_AS_Query(Args _args)
{
Query query;
QueryBuildDatasource datasource;
;
query = new Query();// Add SalesTable main datasource
datasource = query.addDataSource(tableNum(SalesTable));
datasource = datasource.addDataSource(tableNum(SalesLine));
datasource.joinMode(JoinMode::InnerJoin);
datasource.relations(false);
datasource.addLink(fieldNum(SalesTable, SalesId), fieldNum(SalesLine, SalesId));
}
Please give me more shed on this.
Thanks!
Arpan Sen
*This post is locked for comments