Thursday, September 15, 2011

How to add date range in query at run time in Dynamics AX, X++

It want to add the date range on the query at run time. how can i achieve this.


Ans.


query.dataSourceTable(tablenum(BudgetSourceTracking), 1).addRange(fieldnum(BudgetSourceTracking, TrackingDate)).value(queryRange( fiscalPeriodStartDate, fiscalPeriodEndDate));

1 comment: