SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The 'param1' parameter is missing a value


The 'param1' parameter is missing a value

Author
Message
kelvin.phayre 83367
kelvin.phayre 83367
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 9

I've set a parameter to have

General - Allow multiple values
Available values - Get values from a query (KRP is in the list)
Default values - Get values from a query

arameters=false&param1=KRP">http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fTestReportKP1%2fWHSOrders&rcTonguearameters=false&param1=KRP

I get

The 'param1' parameter is missing a value

arameters=false">http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fTestReportKP1%2fWHSOrders&rcTonguearameters=false

Works fine.

arameters=true&param1=KRP">http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fTestReportKP1%2fWHSOrders&rcTonguearameters=true&param1=KRP

Just prompts for blank param1

I want to create a URL that only picks from a few of the Available values.


sgmunson
sgmunson
SSC Guru
SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)SSC Guru (98K reputation)

Group: General Forum Members
Points: 98642 Visits: 7282
That;s just not how SSRS works. When you supply a query for the available values, the default value can be supplied by a query, but that query must have only one row.

Steve
‌(aka sgmunson)
Smile Smile Smile
Health & Nutrition
kelvin.phayre 83367
kelvin.phayre 83367
SSC Rookie
SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)SSC Rookie (35 reputation)

Group: General Forum Members
Points: 35 Visits: 9

Many thanks. I was slowly coming to that conclusion myself.

I have now added a duplicate parameter (@param2) that does not use available values but is part of the where clause with an OR

So I have changed SQL where clause from:-

where customer in (@param1)

To:
where customer in (@param1)
or customer in (@param2)

This works as required. Just a faf! I can now just supply param2 in URL with out param1 and I get the data I want BigGrin

Thanks

Kelvin


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search