1

How do I get the number of rows present in a grid at the form initialization on the init method on Dynamics AX 2012 R3?

Smur
  • 3,075
  • 7
  • 28
  • 46
user3180308
  • 11
  • 1
  • 2

2 Answers2

2

After super() you can use SysQuery::countTotal(). You can get query from your datasource.

Anže Krpič
  • 265
  • 1
  • 4
0

You can find an example here of SysQuery::CountTotal http://www.doens.be/2010/03/counting-the-number-of-records-in-a-queryrun/

AlexS
  • 21
  • 6