Oct 20, 2023

How to get the report name in RDP class

 

[ExtensionOf(classStr(AssetBalancesDP))]

final class AssetBalancesDP_AHCJH_Fin_Extension

{


    public void processReport()

    {

        SrsReportName rptName;        

        next processReport();

        AssetBalancesTmp assetBalancessTmp = this.getAssetBalancesTmp();

        AssetTable                 assetTable;      

       

        Dynamics.AX.Application.SysDocuBrandContract docubrand = this.docuBrandContract;

        rptName = docubrand.parmReportName();

        if(rptName == "MyReport_AssetBalances")

        {        

            update_recordset assetBalancessTmp

                setting                  

                    AdditionalName = assetTable.AdditionalName

                join assetTable

                    where assetTable.AssetId == assetBalancessTmp.AssetId;

        }    

    }

}

No comments: