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?
Asked
Active
Viewed 4,658 times
2 Answers
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