jeudi 19 janvier 2012

Count total number of records in axapta x++

Sometimes, we need to know the number of records in a axapta x++ query... so it's possible! Just we use the SysQuery::countTotal(queryRun) function to count the number of query records.
However, this function count only the number of records of the first datasource... if we need to count the number of records of a query with more than one datasources... we need to use the SysQuery::countLoops(queryRun) instead ofSysQuery::countTotal(queryRun).

Aucun commentaire:

Enregistrer un commentaire