Tuesday, 28 November 2017

Display method in Ax 2012

Display method in Ax 2012



First Create an EDT named : StringEDT
(String Type)

Create a table : "Table"
Create a Field : "Name" and other Fields
Go to Methods : right click and create a new method : "GetName"

Paste the Following Code:


Display StringEDT GetName()
{
    Table ta;
    ;
   select Name from ta
    where ta.Name==this.Name;

    return ta.Name;
}


Now, Go to your Form

and in StringEdit Field of the Grid:

Click Properties and provide the following :
DateSource : Table
DataMethod : GetName
 

No comments:

Post a Comment

job to Update Internal Customers - custTable - AX2012 in all companies (crosscompany)

UpdateInternalCustomers using cross Company in AX2012 we can update the custTable Table in all the companies in AX     static void KTI_...