Display Method
Today I will demonstrate you that how to use Display Method in AX 2012.
Steps to Create Table with field Basic, PF and HRA:
{
Steps to Create Table with field Basic, PF and HRA:
- Create a Table with name "Salary Details" with three fields: Basic, HRA and PF.
 - Create a display method in the table with following code:-
 
{
                     return this.Basic+this.PF+this.HRA;
}
Steps to Create Form:
}
Steps to Create Form:
- Create a form and give reference of above created table as its data source.
 - Add two controls of type IntEdit by right clicking on Design tab.
 - Change two properties, DataSource and DataField.
 - Add another control of same type and change DataSource and Datamethod prperty.
 - Set Datamethod property as CalculateSum.
 - Save the form and Run.
 
Happy Daxing.. :)
Comments
Post a Comment