Omicron Llama

Coding all day, every day.

SharePoint WebPart with Definable or Dynamic Filter Connections

Here’s a code sample which will give you a web part that will ┬áhave a property (accessible via the Toolpane) that lets you define a semi-colon separated list of the names of Filter Connection points. You can then use any standard SharePoint (or even PerformancePoint) filters connected to the web part and use them how you wish in the code.

Note that I’m building the connection points via a Property, but you can do this any way you wish at runtime – just ensure you set the logic in the SetConnectionInterface method in the code. In my example, I’m just getting an array of strings (from that Property) but this could really come from anywhere.


If you intend to use the web part with PerformancePoint, do note that Filters will not work when you add the ‘Apply Filters’ button. I will cover this in a later post but basically you don’t build a standard web part if you want the full PerformancePoint experience.


Leave a Reply

Your email address will not be published. Required fields are marked *