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!

SSRS 2008 and passing parameters to subreports...

Status
Not open for further replies.

jtb

MIS
Apr 7, 2001
744
US
Okay, I've been modifying a previous guru's RDL files via both Report Builder (for look and feel) and Notepad (for parm data lists)... but only since February...

Essentially, the main report has a list of comma-delimited values used to look up data in the OLAP Cube. The data was in the reports like this (real code can't be shared, sorry):
Code:
{ Value01,
Value02,
Value03,
Value04,
Value05 }

Everything has worked well up until recently, when a number of the required values were added that contained hyphens:

Code:
{ Value01,
Value02,
Value-0-3,
Value-0-4,
Value05 }


The reports started "breaking" and research showed it was at the point where the hyphen was--so "Value-0-3" was interpreted as "Value", an incorrect lookup key. This was solved after some research and mentoring by adding square brackets as follows:


Code:
{ Value01,
Value02,
[Value-0-3],
[Value-0-4],
Value05 }

However, many subreports were involved and those required the parm-passing to be edited from

Code:
Parameter1 = Field.Parm.value

to

Code:
Parameter1 = "[" & Field.Parm.value & "]"

I just haven't figured out how to change it for the reports where:
a. the parm is the whole list, not a single value, and
b. the parm is passed to a complicated sub-report that includes .Net or javascript code.

Any advice will be gratefully received and attempted...

JTB
Have Certs, Will Travel
"A knight without armour in a [cyber] land."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top