简体   繁体   English

SSRS:单值参数,供用户单击以转到报表

[英]SSRS: Single Value Parameter for Users to Click to Go To Report

I'm using Visual Studio 2012 for SSRS purposes. 我将Visual Studio 2012用于SSRS。

I'm fairly new to this in SSRS, currently I have 5 different reports (rdls) 1. Workflow 2. Outcome 3. Witness I 4. Witness II 5. Negative Outcomes 我在SSRS中对此很陌生,目前我有5个不同的报告(rdls)1.工作流程2.结果3.证人I 4.证人II 5.负面结果

What I want to do is create a parameter from the beginning that allows the user to select 1 out of these 5 reports to go to. 我想要做的是从头开始创建一个参数,该参数允许用户从这5个报告中选择1个。 Then when they get to that report, they can run that report's particular parameters. 然后,当他们到达该报告时,他们可以运行该报告的特定参数。

How do I go about doing this in SSRS? 如何在SSRS中执行此操作? Or any suggestions for this? 或对此有何建议?

Assuming I've understood you correctly... here' is what I would do 假设我正确理解了您...这就是我要做的

  1. Create a new report 创建一个新报告
  2. Add 5 text boxes each with the name of your reports. 添加5个文本框,每个文本框都带有报告的名称。 You could style these textboxes to look like buttons I suppose. 您可以设置这些文本框的样式,使其看起来像我想的按钮。
  3. Set the Action on the textbox to "go to subreport" and point to the relevant report on each. 将文本框上的“操作”设置为“转到子报表”,并指向每个对话框上的相关报表。
  4. If the 5 reports all take a common set of parameters, then you could add these to the main report and pass them to the subreports, however this would mean clicking "View Report" after setting the parameters before clicking the textboxes, which is not very intuitive. 如果这5个报表都采用一组通用的参数,则可以将它们添加到主报表中并将它们传递给子报表,但这意味着在设置参数之后单击“查看报表”,然后单击文本框,这不是很直观。

The option would be to setup and single parameter listing you reports, then a single textbox with an action to go to a subreport and set the expression for the subreport property to a SWITCH statement that chooses the correct sub report to show. 选项将是设置报告并列出单个参数,然后是一个文本框,其中包含要转到子报表的操作,并将subreport属性的表达式设置为SWITCH语句,该语句选择要显示的正确子报告。 The problem with this, similar to above, is that you need to click the "View Report" button before you can click the actioned textBox. 与上面类似,此问题是您需要先单击“查看报告”按钮,然后才能单击操作的文本框。 Again not a nice UX. 再次不是一个好的UX。

Hope that made sense, I rushed this a bit. 希望这是有道理的,我对此表示赞同。 If you need more clarity let me know and I'll follow up when I have a few minutes spare. 如果您需要进一步的说明,请告诉我,我会在有空余的时间后再跟进。

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

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