Query Ex 2 In Ax 2012
static void CustTableQueryEx(Args _args)
{
CustTable custTable;
Query query;
QueryBuildDataSource qbds;
QueryRun queryRun;
;
query = new Query();
qbds = query.addDataSource(tableNum(custTable));
queryRun = new QueryRun(query);
while(queryRun.next())
{
custTable = queryRun.get(tableNum(custTable));
info(strFmt("%1 , %2 ",custTable.name(),custTable.AccountNum));
}
}
{
CustTable custTable;
Query query;
QueryBuildDataSource qbds;
QueryRun queryRun;
;
query = new Query();
qbds = query.addDataSource(tableNum(custTable));
queryRun = new QueryRun(query);
while(queryRun.next())
{
custTable = queryRun.get(tableNum(custTable));
info(strFmt("%1 , %2 ",custTable.name(),custTable.AccountNum));
}
}
No comments:
Post a Comment