简体   繁体   中英

SSRS passing multiple string parameter to another report

I have read some other posts about this problem, but couldn't get it to work unfortunately.

I have 2 SSRS reports. The first report take a multiple string parameters, runs a select query, and present some rows. Then I have a "Go to Report" Action that pass the values to a sub report and run an update query to update the rows.

When passing the multiple value parameter to another report I used =join(Parameters.ponum,Value,".") but the sub report only recognize the parameter as 1 value. The parameter on the sub report has set to allow multiple value already.

The type of values I want to pass is like 'a-01', 'b-02', 'd01-293'. However, when passed to another report the parameter becomes a-01, b-02, d01-293

I tried to pass with = "'" + join(Parameters.ponum,Value,"'.'") + "'" but still fails.

Is there any other ways I can do this?

Thanks

If your subreport's parameter is multi-value like your main report parameter then in the subreport properties all you do is set the parameter value to your main report's parameter.

So if we have MainReport with a parameter called PoNum and it is multi-value. Then we have mySubReport with a parameter of subPONums for example then in the subreport placeholder in the main report, set the parameter value to [@PoNum]

在此处输入图像描述

The entire parameter object will be passed to the subreport.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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