Skip to content

Instantly share code, notes, and snippets.

View HassanAkhtarKhan's full-sized avatar

HassanAkhtarKhan

View GitHub Profile
@HassanAkhtarKhan
HassanAkhtarKhan / JoiningTwoDatasourcesSample
Created June 30, 2016 07:28
Joining two datasources in code using queryBuildDatasource
static void JoiningTwoDatasourcesSample(Args _args)
{
Query query;
QueryBuildDatasource queryBuildDatasource;
query = new Query();
//Adding <PurchTable> table as the first datasource in query..
queryBuildDatasource = query.addDataSource(tableNum(PurchTable));
//adding <PurchLine> table into the datasource of previously created datasource..