![]() |
#1 |
Участник
|
bojensen: X++ code to Count Records in Query
Источник: http://blogs.bojensen.eu/?p=4714
============== Following code illustrates how we can use SysQuery::countTotal() method to get the number of records in Query. X++: static void Query_cntRecords(Args _args) { Query query = new Query(); QueryRun queryRun; QueryBuildDataSource qbd; ; qbd = query.addDataSource(tablenum(CustTable)); queryRun = new QueryRun(query); info(strfmt("Total Records in Query %1",SysQuery::countTotal(queryRun))); }
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
![]() |
#2 |
Ищущий знания...
|
Цитата:
Сообщение от Blog bot
![]() Источник: http://blogs.bojensen.eu/?p=4714
============== Following code illustrates how we can use SysQuery::countTotal() method to get the number of records in Query. static void Query_cntRecords(Args _args) { Query query = new Query(); QueryRun queryRun; QueryBuildDataSource qbd; ; qbd = query.addDataSource(tablenum(CustTable)); queryRun = new QueryRun(query); info(strfmt("Total Records in Query %1",SysQuery::countTotal(queryRun))); } Microsoft Dynamics [...] Источник: http://blogs.bojensen.eu/?p=4714
__________________
"Страх перед возможностью ошибки не должен отвращать нас от поисков истины." (с) С Уважением, Елизаров Артем |
|
|
За это сообщение автора поблагодарили: jeky (2). |