Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Thursday, June 27, 2013

Infolog in AX and its types

Hi,
Infolog

static void Intro_Infolog(Args _args)
{
int i;
;
info("This is an info.");
warning("This is a warning.");
error("This is an error.");
setprefix("prefix text");
for (i=1; i<=3; i++)
{
setprefix("1. for loop");
info("loop 1");
}
for (i=1; i<=3; i++)
{
setprefix("2. for loop");
info("loop 2");
}
//info("Check customer parameters.", "",
//SysInfoAction_Formrun::newFormname(formStr(CustParameters),
//identifierStr(Customer_defaultCust), ""));
info("Check the sales form help page.", "ApplDoc://Forms/SalesTable");
throw error("This error stop execution.", "");
}


No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...