Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Simple method in Form AOT

$
0
0

I am testing on how to bring a new field from another table into a form, using a method.

display ItemName testme2()

{

   InventTable inventTable;

   ProdCalcTrans PCT;

   ;

   return (select firstonly ItemName from inventTable

       index hint ItemIdx

       where inventTable.ItemId == PCT.Key1).ItemName;

}

There are no errors or warnings returned when compiled. Although the same query works in another method, the one above returns no values.

Any ideas why?

Thank you,


Viewing all articles
Browse latest Browse all 73760

Trending Articles