How to create normal table to temp table in Ax 2012
static void CookBookEX21(Args _args)
{
CustTable custTable;
;
custTable.setTmp(); // Here I'm setting the normal table as a Temp Table;
custTable.AccountNum = "23";
custTable.Blocked = CustVendorBlocked::All;
custTable.Party = 12;
custTable.doInsert();
custTable.clear();
custTable.AccountNum = "177";
custTable.Blocked = CustVendorBlocked::Invoice;
custTable.Party = 1112;
custTable.doInsert();
while select custTable
{
info(strFmt("%1",custTable.AccountNum));
}
}
{
CustTable custTable;
;
custTable.setTmp(); // Here I'm setting the normal table as a Temp Table;
custTable.AccountNum = "23";
custTable.Blocked = CustVendorBlocked::All;
custTable.Party = 12;
custTable.doInsert();
custTable.clear();
custTable.AccountNum = "177";
custTable.Blocked = CustVendorBlocked::Invoice;
custTable.Party = 1112;
custTable.doInsert();
while select custTable
{
info(strFmt("%1",custTable.AccountNum));
}
}
No comments:
Post a Comment