简体   繁体   English

尝试在Visual Studio中根据输入参数生成SSRS报告

[英]Trying to generate SSRS report based on input parameters in visual studio

I have an AX query dataset that I'm trying to use to generate an SSRS report. 我有一个AX查询数据集,我正试图使用​​它来生成SSRS报告。 I want to the user to be able to enter 2 parameters (Date and ProjectId) and have the SSRS report return a table based on the query using the parameters inputted by the user. 我希望用户能够输入2个参数(Date和ProjectId),并让SSRS报告使用用户输入的参数基于查询返回一个表。 Can't write any code so it needs to be purely graphical. 不能编写任何代码,因此它必须是纯图形的。

You can simply add your parameters to query as query ranges. 您可以简单地将参数添加为查询范围。

  1. In the AOT, click Queries, and locate the query that you want to define a range for. 在AOT中,单击“查询”,然后找到要为其定义范围的查询。
  2. Expand the query, click Data Sources, and then expand a data source. 展开查询,单击“数据源”,然后展开一个数据源。
  3. Right-click Ranges, and then click New Range. 用鼠标右键单击范围,然后单击新建范围。
  4. Right-click the new range, click Properties, and then select a field in the Field property list. 用鼠标右键单击新的范围,单击属性,然后在字段属性列表中选择一个字段。
  5. Type an expression in the Value property to specify which records are retrieved. 在“值”属性中键入一个表达式,以指定要检索的记录。

here it's a helpful link for creating queries with ranges: 这是创建带范围查询的有用链接:

https://msdn.microsoft.com/en-us/library/bb314753.aspx https://msdn.microsoft.com/en-us/library/bb314753.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM