views:

5086

answers:

4

Hi, Can anyone tell me how to display all the selected value of my multi value parameter in SSRS report. When giving parameter.value option it gives error.

Thanks in advance. Suni

+8  A: 

You can use the "Join" function to create a single string out of the array of labels, like this:

=Join(Parameters!Product.Label, ",")
Matt Hamilton
http://msdn.microsoft.com/en-us/library/aa337292(SQL.90).aspx
gbn
If he is adding the join expr to the header, it would cause the results to grow over the body of the report no?
mirezus
A: 

I'm not sure if this is what you're looking for: http://dbalink.wordpress.com/2008/10/18/the-all-parameter-in-sql-server-reporting-services-2005/ . Give it a shot.

MarlonRibunal
+1  A: 

=Join(Parameters!Product.Label, vbcrfl) for new line

A: 

I didn't know about the join function - Nice! I had written a function that I placed in the code section (report properties->code tab:

Public Function ShowParmValues(ByVal parm as Parameter) as string
   Dim s as String 

      For i as integer = 0 to parm.Count-1
         s &= CStr(parm.value(i)) & IIF( i < parm.Count-1, ", ","")
      Next
  Return s
End Function
Booji Boy