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

Call Static X++ Methods/display methods from a Report Data Method in Ax2012 R2

$
0
0

Hi all

I am trying to display a string data in my ssrs report , information, that should be displayed is not part of Temporary table, according to the design, it is not good idea to add it as a part of temp table, since the same information will be repeated for all rows. And the table from which the data should be fetched is not part of the report data-source.

I have 2 approaches in my mind.

1. call display method written on the table, from the DataMethod of the report. i dont know how to do it.

2. call static method written on the table, from datamethod written on the ssrs report.

I have written below method but when i try to build the solution it throws some errors.

public static string getDate(string proposalID)

   {

       AxaptaWrapper axapta = SessionManager.GetSession();

       string dates = (string)axapta.CallStaticRecordMethod("ProjProposalJour", "GEN_getDates", proposalID);

       return dates;

   }

error

Error 1 The type 'Microsoft.Dynamics.AX.Framework.Reporting.Shared.IReportSessionInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Dynamics.AX.Framework.Reports.Shared, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. C:\Users\pradeep.itnal\AppData\Local\Temp\5\Microsoft Dynamics AX\C Sharp Projects\psamanageinvoicereport.businesslogic\PSAManageInvoice.cs 44 9 psamanageinvoicereport.businesslogic

any pointers??? what needs to be chnaged i am not C# developer ,i am not sure what is wrong here...


Viewing all articles
Browse latest Browse all 72043

Trending Articles



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