Linkedin Profile

https://www.linkedin.com/in/hafiz-usama-a2111195

Saturday 11 February 2017

Showing message box in AX

Hi,

Today I am going to show you how to create a message box in MS Dynamics AX.
Its quite simple, but if you are new to AX you need to see this.

AX supports many types of message boxes among them 3 are commonly used. They are.

Info (To show information like operation completion etc.)
Warning (To show warning messages)
Error (To show error)

All 3 of them are same but only the box is a little different.

Syntax :



  • Info('This is usama's blog.');
  • Warning('Pay attention.');
  • Error('You didn't pay attention.');


Extensive:

If you need to show any value of variable in message box you will use strfmt in info. This is how its done:

Info(strfmt('%1 total record inserted', variableName));

Thanks.

Keep Daxing !

No comments:

Post a Comment