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


SSRS drill-through report - passing only 2 of 3 parameter values


SSRS drill-through report - passing only 2 of 3 parameter values

Author
Message
danawexler
danawexler
SSC-Enthusiastic
SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)

Group: General Forum Members
Points: 158 Visits: 113
SSRS is not passing the last parameter in my drill through report...the first 2 work fine, but the 3rd requires me to select from available values defined in the Child report. Omit is set to False on all 3 parameters and there are no Default values in the Child report. Any suggestions?

Below is a portion of the .rdl file for reference:

<Style>
<TextAlign>Center</TextAlign>
</Style>
</Paragraph>
</Paragraphs>
<rdBigGrinefaultName>BusinessSection1</rdBigGrinefaultName>
<ActionInfo>
<Actions>
<Action>
<Drillthrough>
<ReportName>DetailBySection</ReportName>
<Parameters>
<Parameter Name="Method">
<Value>=Fields!Method.Value</Value>
</Parameter>
<Parameter Name="Section">
<Value>=Fields!BusinessSection.Value</Value>
</Parameter>
<Parameter Name="DateRangeType">
<Value>=Fields!DateRangeType.Value</Value> ***this value is not being passed***
</Parameter>
</Parameters>
</Drillthrough>
</Action>
</Actions>
</ActionInfo>
<ToolTip>Click to View Detailed Report</ToolTip>

Dana

"Drats! Foiled again!"
danawexler
danawexler
SSC-Enthusiastic
SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)SSC-Enthusiastic (158 reputation)

Group: General Forum Members
Points: 158 Visits: 113
i found my issue and am posting the solution just in case someone else runs into the same problem:

The data type was the issue. The Parameter 'DateRangeType' (Text data type) only determines which date range to use, either Fiscal Year or Calendar Year, but the actual VALUE being passed is Int (the year itself). i had to use the an expression to accurately define it and now it works! (whew!)

.rdl file now reads:

<Parameter Name="DateRangeType">
<Value>=iif(Parameters!DateRangeType.Value="FiscalYear", "FiscalYear","CalendarYear")</Value

Dana

"Drats! Foiled again!"
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