简体   繁体   English

SSRS-将参数从一个下拉菜单传递到另一个

[英]SSRS - Pass parameter from one drop down menu to another

having a hard time phrasing the title. 很难为标题命名。 ok

I've got two attributes, parent and child. 我有两个属性,父母和孩子。 The report I'm building asks for these at the start, so I have two dropdown menus, we'll just say @parent and @child now, parent only has 50 values to choose from, which isn't too bad. 我正在生成的报告在开始时就要求这些,所以我有两个下拉菜单,我们现在只说@parent和@ child,parent只有50个值可供选择,这还不错。 however, child has about 1000 - which is way too much for the dropdown to be effective. 但是,孩子的体重约为1000,这对于有效下拉菜单来说实在太大了。 it's pulling all available options from that table what I would like to do is when you select a row from parent in the dropdown, the list in the child dropdown updates 它会从该表中拉出所有可用选项,而当您从下拉列表中的父列表中选择一行时,我想做的就是,子下拉列表中的列表会更新

is there some way to pass the parameter around to do this? 有什么方法可以传递参数吗? my last resort option is to put a table on the report that shows the child's available values and have them link to the report.. but ew, that's terrible. 我最后的选择是在报告上放一个表,该表显示孩子的可用值,并将其链接到报告。.但是,那太糟糕了。

for anyone who runs across this problem: 对于遇到此问题的任何人:

there are two queries, one for each dropdown 有两个查询,每个下拉菜单一个

the child's query uses the parent's value from the parent's table - it updates just fine 子查询使用父表中的父值-更新就好了

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

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