Reporting Services 2008: Using user!userid in Parameters

后端 未结 3 446
心在旅途
心在旅途 2021-01-03 05:23

I have a report with a parameter that is populated by a list of sales representatives returned by a query. I want to filter that list based on security rights of the user ru

相关标签:
3条回答
  • 2021-01-03 05:35

    Change your query to:

    where UserName = @user
    

    ... and in the "Parameters" tab, assign "User!UserID" to the "@user" parameter.

    0 讨论(0)
  • 2021-01-03 05:47

    Just want to share my experiance if some poor soul wandering around like me without any clue. I discovered that my @user parameter had to be first in the list in order for my dropdown to get populated which was dependant on that. I have no clue why is that.

    0 讨论(0)
  • 2021-01-03 05:50

    Yes I can confirm the order is important when using the userID in a query to set the default value for another parameter. I had to delete and recreate the parameters to get it to work. I couldnt see a way to move the parameter order

    0 讨论(0)
提交回复
热议问题