fieldPName Function
Dynamics AX 2009
Retrieves the label of the specified field.
str fieldPName(str tableid, str fieldid)
The following example prints the label of the CashDisc field.
static void fieldPNameExample(Args _arg)
{
str myText;
;
myText = fieldPName(CustTable, CashDisc);
Global::info(strfmt("%1 is the label of the CashDisc field.", myText));
}
/****Infolog Display
Message (02:00:57 pm)
Cash discount is the label of the CashDisc field.
****/
Community Additions
ADD
Show: