QueryBuildRange range; super(); this.query().dataSourceName('VendTop10VendorsByPurchase').clearDynalinks(); // setting range so that only invoices within the year are calculated
range = this.query().dataSourceName('VendTop10VendorsByPurchase').addRange(fieldNum(VendTop10VendorsByPurchase, InvoiceDate));
range.value(strFmt('(InvoiceDate >= %1)', date2StrXpp(systemDateGet() - dayOfYr(systemDateGet()) + )));
updated by toky 20150512