Linkedin Profile

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

Sunday 12 February 2017

Set up title of Form in AX 2012

Hi,

Today I am gonna show you how to set the title by selected record in Detail form.


For example in Sales Order Detail Form at title bar you see information of Sales Order Number and Customer Name.




1) This is done by setting the Table (datasource of form) property TitleField1, TitleField2.






2) And then go to Form Design. Set the Title DataSource property of design with the data source whose titlefields you just set.




Get newly added field in Form

Hi,

Today I am going to show you how you get newly added field in Form to display.

When we add a new filed in a table it doesn't show in Form Datasource automatically. We often wonder what to do.

You just have to go to that form , Right click and Click on restore button.



Thanks.

Keep Daxing !

Saturday 11 February 2017

Get start and end of month

Hello,

Today I am going to show you how you get first and last date of month from a date.

Here is how:



Thanks.

Keep Daxing !

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 !