Hi All,
I’m using ax2012, and am developing a report in Morphx. For Opening this report a dialog will open and we will select the filters in dialog for the records to be filter in report. For That Purpose I am using the Run method and apply the filter in this way. but its not filtering the record in report.
public
void run()
{
;
this.query().dataSourceTable(
tableNum(CSL_StockLedger)).addRange(fieldNum(CSL_StockLedger,DatePhysical)).value(queryRange(fromDate, ToDate));
this.query().dataSourceTable(
tableNum(CSL_StockLedger)).addRange(fieldNum(CSL_StockLedger,ItemId)).value(productCode);
this.query().dataSourceTable(
tableNum(CSL_StockLedger)).addRange(fieldNum(CSL_StockLedger,InventSiteId)).value(Site);
this.query().dataSourceTable(
tableNum(CSL_StockLedger)).addRange(fieldNum(CSL_StockLedger,InventLocationId)).value(warehouse);
this.query().dataSourceTable(
tableNum(CSL_StockLedger)).addRange(fieldNum(CSL_StockLedger,CSL_ProductAgencyCode)).value(agencyCode);
super();
Please help me to outcome this problem.
Thanks & Regards
Vijay Raj Nath