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.

 

 

已经博主授权,源码转载自 https://pan.quark.cn/s/a4b39357ea24 ### 批处理脚本实现指定文件夹内所有文件与子目录的移除 #### 简介 在Windows系统环境下,批处理脚本是一种极具价值的应用工具,它能够协助用户执行一系列预先设定好的指令,达成自动化处理的目的。本说明着重阐述如何借助批处理脚本移除特定文件夹内的全部文件及子文件夹,并对几种常用技巧的效果进行剖析。 #### 批处理脚本的基础知识 批处理脚本是一种基于DOS命令行环境构建的文本性文档,其文件后缀为`.bat`。借助编写批处理脚本,使用者可以完成复杂任务流程的自动化,例如文件复制、移动、清除等动作。 #### 第一种方法:运用`RD`指令 `RD`指令专用于移除目录(即文件夹)。该指令的标准格式如下所示: ```batch RD [drive:]path [parameters] ``` 其中,`[drive:]path`代表待清除的目录路径,`[parameters]`为若干可选参数,常用的包括: - `/S`:递归式地移除目录及其所有嵌套子目录。 - `/Q`:执行静默模式,不进行确认提示。 ##### 示例1:直接运用`RD`指令 若采用`RD /S /Q c:\temp`指令来移除`C:\temp`目录中的所有文件及子文件夹,将连同`temp`目录本体一同被清除。 ```batch rd /s /q c:\temp ``` #### 第二种方法:灵活运用`RD`指令 为防止误删`temp`目录本身,可以通过先利用`RD`指令清空`temp`目录内的所有内容,随后重新构建`temp`目录的技巧来实现。 ##### 示例2:灵活运用`RD`指令 ```batch rd ...
内容概要:本文系统阐述了物理信息神经网络(PINNs)在求解布洛赫-托雷(Bloch-Torrey)方程中的具体应用,结合PyTorch框架提供了完整的Python代码实现。该方法通过将偏微分方程的物理规律嵌入神经网络的损失函数中,使模型在训练过程中同时满足初始条件、边界条件和控制方程,从而实现对复杂物理系统的高精度数值求解。文中详细介绍了网络架构设计、物理约束的数学表达与损失项构建、训练流程优化及求解结果的可视化分析,充分展现了PINNs在处理传统数值方法难以应对的高维、非线性及复杂几何域问题上的强大能力与独特优势。; 适合人群:具备深度学习理论基础与偏微分方程求解背景的研究生、科研人员及工程技术人员,尤其适合熟悉Python编程语言和PyTorch深度学习框架的学习者。; 使用场景及目标:①为求解布洛赫-托雷方程等复杂物理场问题提供一种高效、灵活的替代方案,克服传统有限元或有限差分法在网格划分和高维计算上的局限;②作为PINNs在传质、扩散-反应、医学成像等科学计算领域的典型应用案例,为相关研究提供技术参考;③推动数据驱动方法与第一性原理物理模型深度融合的科学研究范式发展。; 阅读建议:建议读者结合提供的代码进行逐模块运行与调试,重点理解如何将物理定律精确地转化为可微分的损失函数项,并鼓励尝试将其迁移至其他类似的偏微分方程求解任务中,以深化对PINNs核心思想与实现技巧的掌握。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值