How to access Query data of AOT in Ax 2012 by code
Views (6775)
To access Query data of AOT in Ax 2012 by code you can check code below.
TestTable TestTable;
Query q=new Query(queryStr(TestQuery));
QueryRun qr=new QueryRun(q);
while(qr.next())
{
TestTable=qr.get(tableNum( TestTable));
TestTable=qr.get(tableNum(TestTable));
info(strfmt("%1,%2", TestTable.Description, TestTable.TestId));
}
TestTable TestTable;
Query q=new Query(queryStr(TestQuery));
QueryRun qr=new QueryRun(q);
while(qr.next())
{
TestTable=qr.get(tableNum( TestTable));
TestTable=qr.get(tableNum(TestTable));
info(strfmt("%1,%2", TestTable.Description, TestTable.TestId));
}
This was originally posted here.

Like
Report
*This post is locked for comments