I want to create a custom web part that has more than 1 filter web part and that can be connected to Report Viewer Web Part (Integrated Mode) at runt time/design time.
I searched a lot but could not find a way to have single web part that is a provider to more than 1 filters.
Say for example -
1. My Report accept 2 parameter Department and Region.
2. I want to connect both parameter with single web part having two drop down (one for Department and one for Region)
3. Values from both the drop down should be passed to Department and Region
4. Report should be rendered in Report Viewer Web Part
Solution Tried so far
1. Create a web part that adds two custom drop down
2. Custom Drop down class that Implements from ITransformableFilterValues
3. Have 2 Methods on the web pat each having ConnectionProvider Attribute and return instance of drop down control
Problem:
Even though 2 connection option is shown on my custom filter web part only one can be added For example - If I connect Filter1(custom web part) to Department then i am unable to connect it to Report Viewer web part again.
My web part have methods like this
*[ConnectionProvider("Departmet", "UniqueIDForDept", AllowsMultipleConnections = true)] public ITransformableFilterValues ReturnCity() { return dropDownDepartment; // It implemets ITransformableFilterValues }
[ConnectionProvider("Region", "UniqueIDForRegion", AllowsMultipleConnections = true)] public ITransformableFilterValues ReturnMyRegionB() { return dropDownRegion; //It implemets ITransformableFilterValues }*