web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Count the number of rows - ChequeController Class

(0) ShareShare
ReportReport
Posted on by 1,447

Hi,

How do I count the rows generated by ChequeController Class?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    dolee Profile Picture
    11,279 on at

    Hi,

    You can modify the ChequeDP class (or ChequeDP_FR class if you happen to be working with FR). You can count the number of records in the temp table then put the value in a parameter, or you can do it in other ways.

  • adam260 Profile Picture
    1,871 on at

    Here is a couple of ways to get counts from datasources

    Example 1:

    info(strfmt("Total Records in Query %1",SysQuery::countTotal(queryRun)));

    Example 2:

    QueryRun::getQueryRowCount Method [AX 2012]

    client server public static int getQueryRowCount(Query query, int maxRows)

    example:

    int myCount;

    myCount = QueryRun::getQueryRowCount(query, 999999999);

    Example 3

    int numOfDSRecs;

    numOfDSRecs = InventTable_ds.numberOfRowsLoaded();

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans