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