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 2008 Parameter Passing Issue Expand / Collapse
Author
Message
Posted Thursday, November 08, 2012 6:11 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, March 26, 2014 7:19 AM
Points: 161, Visits: 506
Hi,

We're using SSRS within an application where users login and are authenticated based on their Store. When they generate reports, we pass their store name to SSRS to generate report for their store. Everything works fine on the first report generation. But when the user picks a different date range, they get report for all of the stores in the system. We use MDX to feed the default and available parameter for store name in the .rdl as follows:

SELECT NON EMPTY { [Measures].[MTDActiveMembers], [Measures].[YTDActiveMembers], [Measures].[MTDMembers], [Measures].[YTDMembers], [Measures].[Members], [Measures].[Members-Active] } ON COLUMNS, NON EMPTY { ([Store].[Store].[Store].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOSET(@StoreStore, CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( STRTOMEMBER(@FromCalendarDateHierarchy, CONSTRAINED) : STRTOMEMBER(@ToCalendarDateHierarchy, CONSTRAINED) ) ON COLUMNS FROM [Members])) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS


Stepping through the app revealed that when the user picks a different date range, all the parameters are intact, correct store name is preserved, but when the user hits "View Report" parameter for store name changes to ALL. What could be wrong? As far as app is concerned "View Report" is a black box, so don't know what to change with the rdl
Post #1382449
Posted Thursday, November 08, 2012 9:22 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, November 08, 2012 9:15 AM
Points: 54, Visits: 82


Make sure there is no Default Values Specified in the Store Parameter Area.
Post #1382571
Posted Thursday, November 08, 2012 7:20 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, March 26, 2014 7:19 AM
Points: 161, Visits: 506
T_Dot_Geek (11/8/2012)


Make sure there is no Default Values Specified in the Store Parameter Area.


Thanks!
Post #1382790
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse