November 8, 2012 at 6:11 am
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. :w00t: 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
November 8, 2012 at 9:22 am
Make sure there is no Default Values Specified in the Store Parameter Area.
November 8, 2012 at 7:20 pm
T_Dot_Geek (11/8/2012)
Make sure there is no Default Values Specified in the Store Parameter Area.
Thanks!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy