As you know Dynamics Ax do not handle nulls.
There is a nice Global helper method to get the null equivalent in Ax per data type.
An example should be self explanatory:
static void JobEF_GetNullValuePerDataType(Args _args)
{
anytype any;
Date myDate;
any = Global::nullValueBaseType(Types::Date);
info(strFmt('%1', any));
myDate = mkDate(1,7,2019);
any = Global::nullValue(myDate);
info(strFmt('%1', any));
}
Now that you have the idea, I suggest to look inside the global helper method to know more.
No comments:
Post a Comment