This is a small tutorial to setup lookup in ax.
1)Create a new enum - Trix_Enum with 3 enum elements - ele1,ele2 & ele3
2)Create a new EDT by name : Trix_EDT_Id
3)Create a new table Trix_table with 4 fields :
Trix_Id[datatype - Trix_EDT_Id]
Trix_Name[datatype - Name]
Trix_Type[datatype - Trix_Enum]
Trix_amount[datatype - AmountMST]
4) Go to AOT> EDT> Trix_EDT_Id
Expand the relation node and create a Normal relation.
Go to properties and select the source table in "Table" & source table field in "RelatedField"(E.g.Trix_Id)
Save the changes.
5)Go to the source table from which data should be lookup.
Open the AutoLookup field group.
Add the fields that need to be looked up.(E.g. Trix_Name,Trix_amount)
6)Now use the EDT "Trix_EDT_Id" as edt for any new field.The new field will look up the source table(Trix_table) columns.(E.g. Here Trix_Id,Trix_Name,Trix_amount)
7)Incase of Related field fixed relation it works as a where clause/condition and should be given on enums.
Go to AOT> EDT> Trix_EDT_Id
Expand the relation node and create a Related field fixed relation.
Go to properties and select the source table field in "RelatedField"(E.g.Trix_Type) & enum value(E.g. 0,1,2) in "Value".
Note: The condition is ANDed with the normal relation.