Report processing of Microsoft Dynamic AX

Report processing of Microsoft Dynamic AX

The implementation of a general electronic report usually has four classes.

Contract:

Comment: Contract class is data contract class for SSRS report .

Intent: Gets or sets the value of the data contract parameter.

Controller:

Comment: Controller class for SSRS report that is used to control the report execution as well as preprocessing of the report data. The SSRS reporting framework uses this class to modify the report dialogs, calling the SQL Server reporting services, as well preprocessing parameters for the report. Controller class extends SrsReportRunController .follow is the controller class can be used:

1. Modifying a report query based on the input data

2. Modifying report contract data based on the input data

3. Control a report parameters dialog

4. Open different reports/designs from the same menu item based on the input data

5. Reports that are opened from a form

Intent: The main class for report, but one report should not include this class, beacase this kind of report directly  call SrsReportRunController (Under normal circumstances, method main of controller class always call this framework class.)

DP:                              

Comment: DP class is a data provider class for report.

Intent: The key method ‘ProcessReport’ is in DP class, DP class include all process of data processing, eg: processes the report business logic and insert data to table.

Two important attributes are used in DP classes:

  1. SRSReportQueryAttribute: specifies which AOT query will be used in this report. If the DP class uses an AOT query to process data, define this attribute at the beginning of the class.
  2. SRSReportParameterAttribute: defines the data contract class that will be used by this report to prompt for parameter values. If the DP class contains any parameters this define this attribute at the beginning of the class.

Both the attributes are optional. If the report does not use any query or does not want any parameter to filter report data, these attributes do not need to be used.

UIBuilder :

Comment: User Interface (UI) Builder class builds the UI for SSRS report , this Class is used to define the layout of the parameter dialog box that opens before a report is run in Microsoft Dynamics AX. It is used to add the customizations as well as additional fields in the dialog. follow is the UIBuilder class can be used:

1. Grouping dialog fields

2. Overriding dialog field events

3. Adding a customized lookup to a dialog field

4. Binding dialog fields with Report contract parameters

5. Changing the layout of the dialog

6. Adding custom controls to the dialog

Intent: Build a UI dialog, user can use this dialog to input some data parameter to print report.

About SSRSReport(CustDueReportDetail)

MenuItem(Output)---- CustDueReportDetail properties:

Use properties we can known this output menuitem’s appearance, behavior and data, we should pay attention to Object and Object type, this properties let us known this menuitem which will caller. For instance,  CustDueReportDetail menuitem called class CustDueReportDetailController, and this linked permission object is SSRS CustDueReportDetail, SSRS CustDueReportDetail is a design for report, we can check design in AOT, we also can get server method of this report.

From the above analysis, we known next caller class that is controller class, the controller class include main method in class under normal environment. When we click menuitem, the reference UIBuilder class will operate until report is printed, this class is used to define the layout, user should set value in form, and DP class can get those value to process data processing, DP class have an essential method called “processReport”, this method is the main in DP class, and most data processing in it.

For Dynamics AX7, the report design we can find in AOT, and design use label to achieve different language, we can check the meaning of label by tool find labels, and  there are two types of label  in AX. And parameter of a report is in XML document.

But for Dynamic AX6, the report design we can find in AOT, and design also use label to achieve different language, but label didn’t used in XML document, XML document use the string of names with numbers, We can‘t see the meaning represented by the numbered string.

We didn’t know what does the ‘DiffAmount32’ meaning. We must go report URLs to check the meaning.

We should go reporting sevices configuration manager :

And click URLS, find reference report to download it to local and open it with notepad and find what’s meaning of ‘DiffAmount32’.

时间: 2024-08-23 21:15:34

Report processing of Microsoft Dynamic AX的相关文章

转: rdlc报表An error occurred during local report processing错误

在开发环境的电脑上可生成报表,但是一到客户端就提示An error occurred during local report processing错误. 猜想是缺dll,补充上 Microsoft.ReportViewer.Common.dll Microsoft.ReportViewer.WinForms.dll 结果问题依旧,难道还缺? google后得知还缺一个 Microsoft.ReportViewer.ProcessingObjectModel.dll 这个可不好找,在C:\Wind

Understanding the Settlement Mechanism in Microsoft Dynamics AX

see more at http://blog.mohamedaamer.com/microsoft-dynamics/understanding-the-settlement-mechanism-in-microsoft-dynamics-ax/ Settlement is an accounting transaction that occurs on accounts payable, accounts receivables, and general ledger. This trans

Microsoft Dynamic CRM 2013安装

Microsoft Dynamic CRM 2013安装 Dynamic CRM可以和Exchange整合,通过CRM主页给用户收发邮件,和Lync整合做呼叫中心,通过CRM主页给客户打电话和视频会议,和sharepoint整合,通过CRM主页客户资料可以放到文档库... ... 既然Dynamic CRM有这么多优点,那我们马上动手吧,下面开始切入主题,开始我们的Dynamic CRM安装之旅. 在安装前,先看一下SQL配置管理,将相关的服务打开.(由于在虚拟机里,许多服务需要时才会打开,像R

[eBook]Inside Microsoft Dynamics AX 2012 R3发布

最近一本关于Microsoft Dynamics AX 2012开发的书<Inside Microsoft Dynamics AX 2012 R3> 发布. Book Description Fully updated for Microsoft Dynamics AX 2012 R3! Dig into the architecture and internals of Microsoft Dynamics AX 2012 R3 – with firsthand insights from

Error:Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type &#39;Microsoft.Dynamics.Ax.Xpp.InfoException

I had the same issue with AX 2012 R2 and SQL Server 2012. When I try to call the "calc" method in SalesQuotationTotals calss by business connectors ,the operation  failed with the following message on the infolog: Microsoft.Dynamics.Ax.Xpp.InfoE

microsoft dynamic CRM2016安装时报错组件未安装

当在一台服务器部署安装microsoft dynamic CRM2016时会遇到提示组件未安装报错不能继续安装,这是可以查看对应登录账号的如下路径,通过log日志排查问题: 例:C:\Users\Administrator\AppData\Roaming\Microsoft\MSCRM\Logs 常用组件下载地址: Visual c++ 下载地址:http://go.microsoft.com/fwlink/?LinkId=402059&clcid=0x804. Microsoft .NET F

在Microsoft Dynamic 365/2016环境使用LinqPad查询数据(不使用linqpad Microsoft Dynamic 365 Driver)

在Microsoft Dynamic 365/2016环境使用LinqPad查询数据 老规矩,先上效果图: 实体集合: 实体属性: 属性值:  查询出的结果可以导出的格式: 操作步骤: 1.下载LinqPad工具:下载地址 2.打开LinqPad,按F4快捷键添加引用 3.添加命名空间的引用 4.新增查询,语言选择为program 5.分享一波代码 void Main() { var url = "http://ip:port/orgname/XRMServices/2011/Organizat

Microsoft Dynamic 报表应用report builder 实例

一.打开报表工具report builder 3 二.添加数据源FIltered 三.添加数据集 注意第一个表前面要加Filtered 参数要加CRMAF_cd 四.CRM中新建报表 五.改属性

Changes in Microsoft Dynamics AX 2012 InventTrans data model

The purpose of this post is to give an overview about the changes been made in the Dynamics AX 2012 data model related to inventory transactions. Before AX2012, the only table used for recording all the inventory transactions was InventTrans.  In AX2