how to write a Display Method in d365 fo x++
[SysClientCacheDataMethodAttribute(true)]
public display EcoResDescription ItemDescription()
{
str itemdescription;
InventSum inventsum;
InventTable inventTable;
EcoResProductTranslation ecoResProductTranslation;
EcoResProduct ecoResProduct;
select * from inventTable where inventTable.ItemId == this.ItemId;
select * from EcoResProduct where EcoResProduct.RecId == inventTable.Product;
EcoResProduct = EcoResProduct::find(inventTable.Product);
itemdescription = EcoResProduct.productDescription();
return itemdescription;
}
Comments
Post a Comment