Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Unable to cast object of type 'Dynamics.AX.Application.Forms.InventTrans' to type 'Microsoft.Dynamics.Ax.Xpp.Common'

$
0
0

[ExtensionOf(tableStr(InventTransOrigin))]
final class INFInventTransOrigin_T_Extension
{

public display Str yuvraj()
{

ProdBOM prodbom;


if(this.ReferenceCategory == InventTransType::Production)

{
select prodbom where prodbom.ProdId == this.ReferenceId ;
{

if(prodbom.InventRefId)
{
return prodbom.InventRefId;
}

}
}
return null;
}

}

I PUT THIS DISPLAY METHOD ON A STRING CONTROL IN INVENTTRANS FORM WITH DATA SOURCE INVENT TRANS ORIGIN 


Viewing all articles
Browse latest Browse all 17532

Trending Articles



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