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

Display Method not working

$
0
0

Hi all,

I am using AX 2009, I have that display method that takes the SiteID from the InventDim Table and display it on the CustGrossMargingByItem_NA Report. So here is my method:

Display InventSiteId Site()
{
InventDim inventDim;

Select InventSiteId From InventDim Where InventDim.RecId == CustInvoiceTrans.RecId;
Return inventDim.InventSiteId;
}

The problem is that it doesn't work. I have an error message appearing, there is a red line under the 5th line, from "Select" to "CustInvoiceTrans" and the error message sais that the "Table doesn't have this field".

I don't understand what's wrong, I am basically calling the InventSiteId field from the InventDim Table where the field RecId of that table is the same that RecId in the CustInvoiceTrans table. I did it because InventDim is not in my datasource, so I called it and I defined it before hand. The field that interest me is InventSiteId and the only place where I can find it and have a connection with one of the table my Report is using is the InventDim Table.

If one of you can help me please let me know.

Regards


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>