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

Add Field to InventValueReport AX 2012

$
0
0

Hi,

My main perpose is to add two Fields in the report InventValue.

What I dit is to add the two fields into the Table "InventValueReportTmpLine" and then override the insert method like this:

////// This is My Code //////

public void insert()
{
    InventTable inventTable;
    EcoResProduct ecoresproduct;
    EcoResProductCategory ecoresProductCategory;
    EcoResCategory ecoresCategory;
    EcoResCategory ecoresCategoryFamille;

    select * from  inventTable where this.ResourceId==inventTable.ItemId;

    select * from ecoresProduct where inventTable.Product==EcoResProduct.RecId;
    select * from ecoresProductCategory where ecoresproduct.recId==ecoresProductCategory.Product && ecoresProductCategory.CategoryHierarchy == 5637146826;
    select * from ecoresCategory where ecoresProductCategory.Category==ecoresCategory.RecId;
    this.SousFamille = ecoresCategory.Name;
    select * from ecoresCategoryFamille where ecoresCategory.ParentCategory==ecoresCategoryFamille.RecId;
    This.Famille= ecoresCategoryFamille.Name;

    super();
}

Actually, I'm facing a problem is that my Table "InventValueReportTmpLine" is not empty when I close my report and it has data permanently.

Help Please.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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