Dear great minds i want to convert this display method into field for PurchLine grid in ax2012 particularly i am facing issue to set condition where to set this condition ?
[SysClientCacheDataMethodAttribute(true)]
display PurchLineShowItemName itemName()
{
PurchLineShowItemName purchLineShowItemName;
if (this.ItemId)
{
purchLineShowItemName = this.inventTable().itemName(this.inventDim());
}
else
{
purchLineShowItemName = this.Name;
}
return purchLineShowItemName;
}