Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSRS drill-through report - passing only 2 of 3 parameter values Expand / Collapse
Author
Message
Posted Thursday, May 09, 2013 3:31 PM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, November 18, 2013 4:48 PM
Points: 46, 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>
<rd:DefaultName>BusinessSection1</rd:DefaultName>
<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!"
Post #1451343
Posted Friday, May 10, 2013 1:01 PM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, November 18, 2013 4:48 PM
Points: 46, 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!"
Post #1451721
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse