Dynamics AX 2009: Creating an SSRS 2008 report that gets data from an AX Cube

本文介绍了如何使用SQL Server Report Builder 2.0设计针对Dynamics AX 2009 OLAP立方体的报表。通过详细步骤说明了创建数据源、设置连接属性、构建数据集及报表设计的方法。

转载:http://blogs.msdn.com/saveenr/archive/2008/11/05/dynamics-ax-2009-creating-an-ssrs-2008-report-that-gets-data-from-an-ax-cube.aspx

Dynamics AX 2009: Creating an SSRS 2008 report that gets data from an AX Cube

Very soon you'll be able to use Dynamics AX 2009 BI Components with SQL Server 2008. One benefit of SQL 2008 is that SSRS 2008 includes a new tool to design reports called SQL Report Builder 2.0. You can use Report Builder 2.0 to design ad-hoc reports against the OLTP database or reports against the OLAP Cubes. In this example, I'll show you how to connect to the AX OLAP Cubes.

 

Start SQL Report Builder 2.0

Launch SQL Report Builder 2.0

image image image

 

Create a Data Source

In the Report Data pane on the left,  select New > Data Source

The Data Source Properties dialog will launch

image

Change the Name field to "DemoDynamicsAXOLAP"

image

Click on Use a connection embedded in my report

The dialog will change its contents.

image image

For Select a connection type, expand the dropdown and select Microsoft SQL Server Analysis Services

image

Under Connection string, click the Build button

The Connection Properties dialog will launch

image

For server name, enter the name of the machine running the SSAS service (in this example "isotopex")

image

In the Connect to a database area, in the Select or enter a database name, click the dropdown and select "Dynamics AX"

image

In the Connect to a database area, click the Advanced button

The Advanced Properties dialog will launch

image

Under the Security section of properties, set the Integrated Security property to SSPI

image

Click OK to dismiss the Advanced Properties dialog

image

You'll be back at the Connection Properties dialog

image

Click the Test Connection button

image

The Test results dialog should say "Test connection succeeded". Click OK to dismiss the dialog.

image

You'll be back at the Connection Properties dialog

Click OK to dismiss the Connection Properties dialog

image
You'll be back at the Data Source Properties dialog

Click OK

image

The Data Source Properties dialog will disappear and you will see "DemoDynamicsAXOLAP"
as a node in the Report Data pane on the left.

image

Create a Dataset

In the Report Data pane on the left,  select New > Dataset

The Dataset Properties dialog will launch

image

Change the Name field to "DemoDatasetAXBank"

image

Set the Data source field to the one you previously created ("DemoDynamicsAXOLAP")

image

Under Query click the Query Designer button

The Query Designer dialog will launch.

image image

Select the General Ledger Cube by clicking on the ellipsis button in the upper left.

image image image

Expand the Bank account descriptions dimension

Drag the "By Bank Account ID - Name" dimension into the dimensions are at the top of the dialog.

image image

Unexpand the Bank account descriptions dimension

image image

expand the Measures node

image image

Expand the Bank transactions node

image image

Drag "Master Amount - Bank" to the big empty area

image image image

Unexpand the Measures node

image image

Go back to the bank account descriptions node

and drag the "By Bank Accounts - Name" into the big empty area and drop it just in front of the Master Amount field

And now you'll see the data

image image image

Click OK to close the Query Designer

image

You'll be back at the Dataset Properties dialog. Click OK to close the dialog

image

And now you'll see on the left that the Dataset called "DemoDatasetAXBank" is listed inside the node for "DemoDynamicsAXOLAP"

image

In the design of the report, click on the "Table or Matrix" icon

image

The New Table or Matrix dialog will launch

Select DemoDataAXBank and click Next

image image

The Arrange Fields page will appear

image

In the Arrange Fields page, drag Master_Amount__Bank into the Values box

image image image

Drag Bank_name into the Row groups box

image image image

Drag Bank_accounts into the Row groups box under the Bank name

image image image

Click Next

The Choose the layout page will appear

image

Click Next

image

The Choose a style page will appear.

snap1703

Click Finish

image

The dialog will go away and you'll see the design has been modifies

image

Click Run on the ribbon

image

And you'll see the report execute and render in a moment

image

Play with the report

Expand the Bank of China Operating Account

image image

Expand the Bank of Europe Operating Account

image image

Expand the Bank of USA Operating Account

image image

Expand the Bank of USA Payroll account

image image

 

 

Save the Report

 

Click on the Save icon. It' will save the RDL file in you My Documents folder.

image image

Deployment

I'll cover that in another post.

It will be simple: put the RDL file on the SSRS 2008 Server using the SSRS Reports Manager web site.

 

 

提供了一个基于51单片机的RFID门禁系统的完整资源文件,包括PCB图、原理图、论文以及源程序。该系统设计由单片机、RFID-RC522频射卡模块、LCD显示、灯控电路、蜂鸣器报警电路、存储模块和按键组成。系统支持通过密码和刷卡两种方式进行门禁控制,灯亮表示开门成功,蜂鸣器响表示开门失败。 资源内容 PCB图:包含系统的PCB设计图,方便用户进行硬件电路的制作和调试。 原理图:详细展示了系统的电路连接和模块布局,帮助用户理解系统的工作原理。 论文:提供了系统的详细设计思路、实现方法以及测试结果,适合学习和研究使用。 源程序:包含系统的全部源代码,用户可以根据需要进行修改和优化。 系统功能 刷卡开门:用户可以通过刷RFID卡进行门禁控制,系统会自动识别卡片并判断是否允许开门。 密码开门:用户可以通过输入预设密码进行门禁控制,系统会验证密码的正确性。 状态显示:系统通过LCD显示屏显示当前状态,如刷卡成功、密码错误等。 灯光提示:灯亮表示开门成功,灯灭表示开门失败或未操作。 蜂鸣器报警:当刷卡或密码输入错误时,蜂鸣器会发出报警声,提示用户操作失败。 适用人群 电子工程、自动化等相关专业的学生和研究人员。 对单片机和RFID技术感兴趣的爱好者。 需要开发类似门禁系统的工程师和开发者。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值