Dynamics AX 2009: Creating a simple SSRS Report

本文介绍如何使用 Dynamics AX 2009 和 SQL Server Reporting Services (SSRS) 创建简单报告。主要内容包括创建查询、建立报告项目、部署到 SSRS 服务器以及查看最终结果。

转载:http://blogs.msdn.com/saveenr/archive/2008/10/24/dynamics-ax-2009-creating-a-simple-ssrs-report.aspx

Dynamics AX 2009: Creating a simple SSRS Report

Dynamics AX 2009 features support for writing reports using SQL Server Reporting Services. In this post, I'm going to show you how to create a simple SSRS report that accesses data in the AX database.

The overall process I will describe will focus on the first stage of authoring and deploying the report from the developers perspective.

In future posts I'll cover

  • Formatting the report
  • Adding menu items to launch the report
  • Security
  • Accessing OLAP data
  • etc.

The basic steps

  • Create an AX Query
  • Create a new AX Reports Project and a new report in that project
  • Create a dataset in the report bound to that query
  • Create a design to report to render the dataset
  • Preview the design
  • Deploy the design to SSRS
  • View the report via IE
  • Save the Report project back into AX

The report I will create will be a simple unformatted table of customers and customer IDs.

 

Create an AX Query

Launch the Dynamics Client

image

Open the AOT

image

image

In the AOT, right click on Queries and select New Query

image

By default a new query will be create with a default name (in this case "Query1")

image

Right-Click on that query and select Rename

Give it the name "DemoQueryCustomers" and hit RETURN

image

image

Expand that query in the AOT

image

Right-click on Data Sources and click New Data Source

A new data source will be created and by default attached to some table (in this case it will be called "Address_1"

image

image

If you hover over this datasource you will see the query string

image

Right click on that data source and select Properties

image

The property window for that data source will appear

image

Navigate to the Table property and change it to the "CustTable"

image

Click on the Name property

You'll notice that the Name changes to "Cust_Table_1"

image

Close the property window

image

image

Click Save All in the AOT

image

Close the AOT

image

image

Create a new AX Reports Project and a new report in that project

 

Launch Visual Studio 2008

image

File > New > Project

image

The New Project dialog will launch

Under Project Types, select Visual C#  / Dynamics

Under Templates select Dynamics AX Reporting Project

Change the Name to "DemoReportsLibrary1"

Click OK

image

An new AX Report Library project is created

By default it contains a report called "Report1"

Right click on this report and rename it to "DemoReportCustomers"

image

Create a dataset in the report that is bound to the AX query

In the report, right click on Datasets and select new Dataset

By default the name of the Dataset is "Dataset1".

Rename it to "DataSetCustomers"

image

In the properties window for the Dataset

Verify that the Data Source is "Dynamics AX"

Verify that the Data Source Type is "Query"

Verify that the Default Layout is "Table"

Click on the Query field

image

Click on the ellipsis button in the value for the Query field

image

A dialog will launch that will list all the queries in AX. It will take a few seconds to populate this dialog with all the queries so be patient.

image

Under Select Query, choose the query you previously created "DemoQueryCustomers"

After you select that query the right column will be filled with fields from the query.

By default All will be selected.

Uncheck All

image

Check the AccountNum field

image

Check the City field

image

Check the Name field

image

Check the State field

image

Click OK to close the dialog

You'll now see that "DataSetCustomers" contains all the fields you selected.

image

Select "DataSetCustomers" and drag it into the "Designs" node

image

After you finish dragging, you'll see that a design has been created. It will be given the name "AutoDesign1"

image

Preview the design

With AutoDesign1 selected, click Preview in the toolbar

image

 image

You'll notice a message at the top of the preview saying "The design has validation warnings" and you can see the warnings in the error list at the bottom.

We'll ignore this for now.

Click the Save icon to save the report

 

Deploy the design to SSRS

Right click on the solution and select Deploy

image

At the status bar in the bottom you'll see a message on the left and some animation on the right indicating that the deployment is in progress.

image

Eventually it will say "Deployment succeeded" in the status bar

image

View the report via IE

Launch IE and navigate to your SSRS reports server (in this example it is http://isotopex1:81/reports/)

image

Navigate into the Dynamics link

image

Find the report we deployed

It will be listed as "DemoReportsLibrary.DemoReportCustomers.AutoDesign1"

Click on it to view the report

image

And now you'll see the report

image

 

Save the Report project back into AX

Close IE

In the solution, right click the report project (not the solution) and select Save to AOD

image

Open the Dynamics AX client

Open the AOT

image

In the AOT expand the Report Libraries node

you'll see the report library "DemoReportsLibrary" is now in AX

if you need to edit the report library again just locate it in the AOT, right-click it and select Edit in Visual Studio

image

Published Friday, October 24, 2008 9:40 PM by saveenr

 

 

内容概要:本文深入研究了基于最优滑模控制的永磁同步电机(PMSM)调速系统模型,重点利用Simulink工具搭建并仿真了该控制系统的动态响应特性。文章系统阐述了最优滑模控制策略的设计原理,突出其在削弱传统滑模控制固有抖振现象、增强系统鲁棒性方面的显著优势。通过与传统滑模控制方法的对比实验,充分验证了所提出方法在调速精度、抗外部干扰能力以及动态响应速度等方面的优越性能。研究内容涵盖PMSM数学建模、滑模面构造、最优控制律推导、Lyapunov稳定性分析、参数整定及Simulink仿真验证等完整环节,形成了一套严谨的控制算法设计与实现流程。; 适合人群:具备自动控制原理、现代控制理论基础和MATLAB/Simulink仿真操作能力,从事电机驱动控制、电力电子与电力传动、运动控制或自动化等相关领域研究的工程技术人员及高校研究生。; 使用场景及目标:① 深入掌握滑模控制理论及其在高性能电机调速系统中的具体应用方法;② 学习如何设计并实现能够有效抑制抖振的最优滑模控制器,以提升系统整体鲁棒性和控制品质;③ 利用Simulink平台独立完成从理论建模到仿真验证的全过程,服务于科研课题、课程设计或实际工程项目。; 阅读建议:建议读者务必结合MATLAB/Simulink环境动手复现文中模型,重点关注滑模切换面的设计准则、控制律的数学推导过程以及控制器参数的调节规律,并通过施加不同的负载扰动、设定多种转速指令等方式全面测试系统的动态与稳态性能,从而深刻理解最优滑模控制的核心机理与工程应用价值。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值