惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyberwarzone
Cyberwarzone
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
腾讯CDC
S
SegmentFault 最新的问题
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Hacker News
The Hacker News
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
B
Blog
IT之家
IT之家
Spread Privacy
Spread Privacy
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
Cisco Blogs
Recent Announcements
Recent Announcements
H
Hacker News: Front Page
AI
AI
I
InfoQ
H
Heimdal Security Blog
T
Threatpost
Cisco Talos Blog
Cisco Talos Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
W
WeLiveSecurity
SecWiki News
SecWiki News
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
T
Threat Research - Cisco Blogs
V2EX - 技术
V2EX - 技术
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
O
OpenAI News
阮一峰的网络日志
阮一峰的网络日志
T
Troy Hunt's Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
T
Tor Project blog
有赞技术团队
有赞技术团队
Schneier on Security
Schneier on Security
Last Week in AI
Last Week in AI

博客园 - Jacky Xu

Office Excel Add-ins installation for AX 2012 and Dynamics AX 2012 clients reinstalltion Codes Permission Management in AX 2012 Publish AX reports in AX2012 + SQL2008 Create a security policy in Dynamics AX2012 How to use a shared configuration file& Security configuration example in Dynamics AX 2012 Security management in Dynamics AX 2012 Dynamics AX2012 Installation& AOS (Cluster) configuration on Windows 7 Office 2007 Re-installed issue Delete printer sessions on Terminal server for users Launch AX2012 Virtual Machine Change Tracking -- SQL Server 2008 new feature FILESTREAM -- SQL Server2008 New Feature Don't use SQL keyword as your feild name of a table Reports development in Axapta 3 记忆一些SQL语句 终端服务器许可问题 Can't access maintenance plan because Agent XPs component is turned off as part of the security configuration on sql2005 SQL Error log/Event ID(17890): A significant part of sql server process memory has been paged out. This may result.... command命令大全(转自http://blog.dhedu.gov.cn/u/72/archives/2009/14290.html)
Develop a Dynamics AX2012 Report by Visual Studio 2010
Jacky Xu · 2011-11-29 · via 博客园 - Jacky Xu

As a big enchancement, AX2012 has developed reports through Visual Studio with SSRS directly. That is meaning you can develop AX reports without x++. If you are a .net developer, you can do AX reports easily.

Pre-requirments:

SSRS + Visual Studio2010 + IIS7 + .Net4.0 framework

1, Create a Dynamics AX project (Report model or EP Web Application), here i select Report model and project named SSRSDemo.

2, In VS solution explorer, you can find your current solution. And right click project name, click Add [Your project name:SSRSDemo] to AOT.

3, Show Application explorer, you can view all AOT objects. And you can find your project in the AOT->Visual Studio Projects->Dynamics AX Model Projects->SSRSDemo.

4, If you add a report on your project such as salesstat and it will be showed on AOT->SSRS Reports->Reports->salesstat.

5, When you login AX client, you also can find them in AOT.

6, In SalesStat design overview, expend it and you can find DataSets, Designs, Images, Data Methods and Parameters nodes.

7, In Datasets node, Add a new dataset named SalesLine:

Its properties, Data source=Dynamics AX (Your AX database), Data source type=Query, Name=SalesLine and Query=select * from salesline (The query should exist in AOT-Query)

For data source type, it has four types:

  a. Query - use a query from the AOT
  b. Business Logic - use a data method from the report project
  c. Report Data Provider - use the results of an X++ class
  d. AX Enum Provider - use an enum from the AOT

Once you add the dataset successfully, you can expend fields and parameters if have on the SalesLine dataset node.

8, Drag salesline dataset to Designs node and it will generate a Design named SalesLineTable under AutoDesign1 automatically. You also add it by hand or create a precision design.

9, Designs->AutoDesign1->SalesLineTable node, it included groupings, sorting, fiters and data node (Here just discuss data and filters). Data is to show fields which you want to display on the report. Filters is the condition to filter records which you want.

Data i selected SalesId, ItemId, Name, CurrecyCode, LineAmount, Custgroup and CustAccount.

Filter i created a filter named CustFilter1.

10, Before we do filter, we setup parameters first. Create a parameter named PCustGroup and setup properties as below:

Multi Vaule= True, Default value=SalesLine-CustGroup (From dataset), Name= PCustGroup and Values= Databound Vaule-SalesLine(from dataset)

11, Setup a filter which named CustFilter and its properites is below:

Expression= =Fields!CustGroup.value, Name=CustFilter1, Operator=In (Because we enabled multi-values on PCustGroup) and Value=Parameters!PCustGroup.Value (We defined on Step 10)

12, A simple report is done and we can view it by Visual Studio.

A, In AutoDesign1 node, right click and click preview. It will show two tab, one is for parameters which you defined filter, another is report to display records as your condition.

In parameters tab, click your filter condition such as Cust group is 30 and 10.

Then click report tab and wait the report gerenate.

13, The report was developed sucessfully, then build the SSRSDemo project and the action will save the project on model store. (Deploy also can update in AX)

14, Go to AX client, create a output menuitem, its properities is as below:

Name=SalesStat, ObjectType=SSRSReport, Object=SalesStat, ReportDesign=AutoDesign1

15, Right click SalesStat menuitem and click open to select as below and OK to run the report:

16, The report is show below: