Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Multi Value Parameter in Header 1

Status
Not open for further replies.

satinsilhouette

Instructor
Feb 21, 2006
625
Hi,

I need to display a multi value integer (not string) parameter in SRSS 2005 Header. I can't seem to find any snippets of code for an interation loop or anything else. Has someone done this yet?

Ex:

AU
1
2
3
4
5
6

User chooses 3,4,5. They want to see 3,4,5 displayed in header.

Thanks!

Thanks so much!
satinsilhouette
 
Header Expression:
Code:
=Join(Parameters![red]multiValueParameterName[/red].Value, ",")
 
Hi,

Thanks but that is for string, not integer. I appreciate you answering though!

Thanks so much!
satinsilhouette
 
What do you mean by it "is for string, not integer"? It returns a string but does not require the parameter itself to be a String/Text data type as the Join function is overloaded to accept an array of Objects. Did you attempt to use it to see what it does?
 
Yes and it barked at me, gave me an error. Said I couldn't use the join with an interger.

Thanks so much!
satinsilhouette
 
I'm using SSRS 2008 and not having any problems using Join with a multi-value integer parameter. Where are you seeing this error; in the Expression editor or at run-time? When you type "=Join(" in the Expression editor, what do you see for the Intellisense options after typing the opening parenthesis?
 
By the way, you're not typing
Code:
=Join(Parameters!multiValueParameterName.Value[b][red](0)[/red][/b], ",")
are you?
 
well you hit the nail on the head. If you just double click on the parm in the expressions it adds the (0).

Thanks that was a great catch! Problem solved!

Thanks so much!
satinsilhouette
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top