This blog is about daily challenges we normally faced in Dynamics AX development and newly arrival framework, changes and modifications. For AX7, I create a new blog https://ax7lab.wordpress.com
Friday, April 1, 2011
Count total number of records
To count number of records in a query, you just need check it through SysQuery::countTotal(QueryRun) and if the query have more than one data sources use SysQuery::countLoops(QueryRun) instead of SysQuery::countTotal(QueryRun).