Dynamics AX 2009: Creating a simple SSRS Report

AI权益加码!Claude Code、Cursor等20+工具免费用! 购周边限时加赠Coding Plan Lite,畅享主流AI工具!学习进阶更高效! 阅读详情

转载: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

 

 

【嵌入式开发】基于C语言的抽象工厂模式设计:嵌入式系统中可扩展设备驱动创建框架实现 内容概要:本文以C语言实现抽象工厂模式为核心,通过具体代码示例详细讲解了如何在C语言中应用这一创建型设计模式。文章借助水果店销售不同颜色苹果和葡萄的案例,展示了如何利用函数指针构建抽象工厂,从而根据客户需求创建一系列相关或相互依赖的对象,而无需指定具体的实现类。文中包含了完整的结构体定义、函数实现以及内存分配与断言处理,体现了C语言面向对象编程的思想。 适合人群:熟悉C语言基础并希望深入理解设计模式的初级至中级开发者,尤其适用于嵌入式系统或底层开发人员。 使用场景及目标:①掌握在C语言中如何模拟面向对象的抽象工厂机制;②理解如何通过函数指针实现多态和模块化设计;③应用于需要解耦对象创建与使用的软件架构中,提升代码可维护性和扩展性。 阅读建议:建议读者结合代码逐段分析,动手实践每个模块的编写与调试,深入理解抽象工厂模式在非面向对象语言中的实现原理和工程价值。 立即下载

相关推荐

2026年最新桐乡市公交线路及站点矢量数据.zip

数据格式:shp 数据坐标:GCJ02 数据更新时间:2026年9月 公交线路来源:8684网站 https://8684.com.cn/ 站点数据来源:高德API接口 数据打开方式:QGIS或Arcgis 站点数据字段:名称、序号、对应线路、几何信息 线路数据字段:名称、类型、起点、终点、开始时间、结束时间、起步价、全价、长度、公司、几何信息

一个奇怪的问题

今天遇到一个奇怪的问题,在这里登记一下,备查。版本Dynamics AX2009 RU7为了限定用户多次登录系统,在info类的startupPost方法里写了一段代码:voidrestrictLoginTwice(){//TorestrictuserloginformsecondloginxSessionsession;SysClientS...

weixin_30542079的博客 94

上海大众-自学手册238-CAN总线上的数据交换

上海大众_自学手册238_CAN总线上的数据交换

Dynamics AX2009的Forms下面有一个名为tutorial_tetris的form,大家点开它看看是什么东西吧,解解闷

Dynamics AX是微软件推出的一款ERP系统,功能强大,一惯微软的操作风格,刚毕业就投入这个平台上做一些二次开发或者应用之类的,近期发现Dynamics AX2009 的Forms下面有一个前人开发的好的小游戏,写代码写到想吐的时候就点开这个小窗体玩了几下 各位从dynamics AX开发的老铁们,不妨找找是不是有这样的一个小游戏,把你老大们喊出来一起玩。 ...

weixin_44136823的博客 247

Dynamic AX 2009 SSRS DataSource Setting From BusinessLogic

在VS 2008中开发Dynamic AX 2009 SSRS报表,当报表数据集DataSet的数据源类型Data Source Type为Business Logic时,数据集字段是根据DataMethod生成的,如果使用报表生成器ReportBuilder打开报表在报表生成器中进行编辑设计,这时报表设计器会为报表自动生成一个名为AutoGen___BusinessLogic的数据源。    

liujzss的专栏 532

sample jobs

Here are some sample jobs:Simple select statement examplestatic void selectExample(Args _args){CustTable custTable;int counter;;select * from custTable;while(custTable.AccountNum){print custTable.Name

GuanXX的专栏 1337

AX 2009 自定义Report

自定义报表类 写一个可以执行的报表类,实现传参调用报表。 传参的部分使用的是Dialog。 classPurYearClassextendsRunBaseReport{DialogFieldg_dialogField;intg_year;publicClassDescript...

diuku1661的博客 178

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

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

MS ERP 1229

Debugging business logic in AX 2009 SSRS reports

Debugging business logic in AX 2009 SSRS reportsPublished 30 August 08 02:43 PM | vnicolas  BackgroundWith AX2009 you are now able to do SSRS reports in Visual Studio. The typical process for de

MS ERP 883

学习笔记-AX2009生成二维码

最近需要在ax中实现二维码,咨询了大侠,说ax2009支持二维码,需要加载dll即可。网上搜索,参考了下面文件    http://www.cnblogs.com/rumenren/archive/2012/12/27/2835085.html    https://community.dynamics.com/ax/b/dynamicsofax/archive/2015/02/21/genera...

icedut的专栏 804

AX2009 VS平台报表开发学习笔记(一)--初体验

AX2009开始,AX的报表平台就移植到Vistual Studil平台通过Reporint Services来实现了,AX2009的Morphx报表平台也就宣告寿终正寝了。 直到AX2009发布一年多后的今天才开始学习这个报表开发平台,实在是懒得有些出奇了,边学边写点东西吧,年纪大了,记性不好了,边学边记录一下,随时翻阅比较好。 先从头到尾看了一遍MSDN中关于报表平台的教程,http:/...

weixin_30786617的博客 2364

高校如何提升科研项目评价的科学性与效率?.docx

科易网基于40亿+科创知识图谱数据库,深度探索AI技术在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,研究科技创新领域的AI+数智化解决方案,推动科技创新与产业创新智能化发展。

科技服务机构如何为委托方提供专业、高效的项目评估与成果转化服务?.docx

科易网基于40亿+科创知识图谱数据库,深度探索AI技术在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,研究科技创新领域的AI+数智化解决方案,推动科技创新与产业创新智能化发展。

技术转移机构如何提升技术成果评估的准确性和效率,促进科技成果转化?.docx

科易网基于40亿+科创知识图谱数据库,深度探索AI技术在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,研究科技创新领域的AI+数智化解决方案,推动科技创新与产业创新智能化发展。

基于java Web 教师工作量核算论文 案例

基于java Web 教师工作量核算论文 案例

2026年最新慈溪市公交线路及站点矢量数据.zip

数据格式:shp 数据坐标:GCJ02 数据更新时间:2026年9月 公交线路来源:8684网站 https://8684.com.cn/ 站点数据来源:高德API接口 数据打开方式:QGIS或Arcgis 站点数据字段:名称、序号、对应线路、几何信息 线路数据字段:名称、类型、起点、终点、开始时间、结束时间、起步价、全价、长度、公司、几何信息

2026年最新杭州市公交、地铁线路及站点矢量数据.zip

数据格式:shp 数据坐标:GCJ02 数据更新时间:2026年9月 公交线路来源:8684网站 https://8684.com.cn/ 站点数据来源:高德API接口 数据打开方式:QGIS或Arcgis 站点数据字段:名称、序号、对应线路、几何信息 线路数据字段:名称、类型、起点、终点、开始时间、结束时间、起步价、全价、长度、公司、几何信息

科技园区如何通过数字化评估体系招引高质量科创企业?.docx

科技园区如何通过数字化评估体系招引高质量科创企业?

上一篇: Installing Reporting Services, Analysis Services and Enterprise Portal for AX 2009
下一篇: Dynamics AX 2009: Business Intelligence – How Data Flows into AX SSRS Reports and Excel
proxyman
博客等级 码龄23年 3粉丝 19原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值