Click here to Skip to main content
15,896,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,
We are using SSRS reports without any filters for the parameters. But our client came with new requirement to filter the parameters (dropdrop) based on the user details. For example, the client dropdown, we will define the cliente ids in user detail table. Now the client dropdown must filter according to the userId and only the assigned clients should get displayed.
How can we achieve this?
Posted
Comments
joshrduncan2012 3-May-13 13:43pm    
Use the selectedindexchanged property and query the db with the filter from the first choice.
Sandeep Mewara 3-May-13 15:36pm    
So you want topass parameter to SSRS report now?
Member 10027010 4-May-13 2:08am    
Yeah but from code behind. That is I'm sending the user id of the current user and I want to pass this to the SSRS report. In the report ill use this user Id to filter the available values. Pls let me know if I'm not clear on my question.

1 solution

 
Share this answer
 
Comments
Member 10027010 4-May-13 9:44am    
Thanks it helped out...
Member 10027010 6-May-13 3:53am    
Bhusan, With this I was able to achieve the requirement. By this I was able to set the value to the parameter that was already created in the SSRS report. But I just want to know If I can create a new parameter to the SSRS report from the code behind.
Bhushan Shah1988 6-May-13 6:12am    
I think its not possible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900