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

Popular posts from this blog

Get Current Worker data in d365 fo x++

Table Level Event Handler in d365 fo x++