zevenseas


 

Announcing: The zevenseas Choice Column Filter Web Part

DOWNLOAD

I really love filter web parts and I really love connections. I've always looked at this functionality is SharePoint and dreamed of the incredible hybrid interface holy grail that together it could achieve. Imagine a page that everyday delivered you a single view onto the information you need to do your job, regardless of where the data was stored or how many logins you needed to access it. Imagine being able to mix and match these building blocks in any which way you like, tuning the information, and taking you to a place where you are able to make decisions the instant an opportunity presents itself.

Ok, I'm getting a little carried away, but this is the first in what will be a series of simple filter web parts that in their own small way move us toward this vision.

The zevenseas Choice Column Filter web part does three simple things:

  1. It pulls the choices from a choice column
  2. Displays them in a list of option buttons (drop down box to come, just I find options buttons so much more intuitive)
  3. Passes  the value you select to other web parts via a connection

Here is a simple walk through that shows you how:

1. First I added a new column called “CompanyName” to the standard “Contacts” list in SharePoint as follows:

image 

2. Then I added in some sample data, and added a List View Web part for the list onto a new Web Part Page like so:

image

3. Everything is pretty simple so far, but his is where the Choice Filter web part comes in. The Choice Filter web part is attached to the “CompanyName” column, pulling out its values, creating a list of option boxes, and allowing you to sort the list at a single click. Here we add the Web Part, and the open the tool pane:

image

4. At the top of the tool pane we can select the list we want to attach to, and then any Choice fields that exist within the list, here we have changed it to point to our Contacts list:

image

5. When you have finished, click on “OK” to save the changes. The Choice Filter web part will now render with each choice appearing as an Option button:

image

6. All that remains is to connect up our new Choice Filter web part to the existing “Contacts” list view web part. First, make sure the page is in “Edit Mode”, then click on the “Choice Filter” edit drop down and select the following meni tree: “Connections” –> “Send Choice Filter To” –> “Contacts”, you will then have the following pop-up appear:

image

7. Match the “Choice Value” to the field you connected to earlier, in this case “CompanyName” and you are ready to go.

image

image

image

We have made it available via our CodePlex community solution site as a ready to install solution, or if your the developer sort, with full source code. Let us know what you think.

Links to this post

Comments

On 16 Nov 2008 07:05, Andrew Meakin

Hi Daniel,

excellent webpart, such a simple idea but so useful! It would be even better if I could get it to work with a data view webpart. Have you got any plans to develop it further to include this functionality?

Keep up the good work!

Andy

On 16 Nov 2008 07:05, Daniel McPherson

Hey Andrew, thanks for the feedback, will take a look at doing this. Drop me an email, daniel@zevenseas.com and I will get you a build to test.

On 12 May 2009 09:36, Gene

Hi,
I downloaded the solution from codeplex. Installation went fine. When I add the "Choice Filter" webpart to the page, I get "unable to add selected web part(s). Coice Filter: A Web part or Web Form Control on this page cannot be displayed or imported. The type is not registered as safe."

On 12 May 2009 09:47, Gene

Nevermind... I figured it out. I deployed it to the wrong app. My bad.

Nice solution by the way!

Thanks

On 12 May 2009 12:53, Gene

Hmm... the "All" option in the RadioButton mode does not respond. The dropdown option works.

On 03 Jun 2009 07:23, HeinzJ

Hey

I like your choice filter.
Would be nice to get choice from other field types than choice too

On 27 Apr 2010 08:25, Panoone

As interesting as this is I'm far more curious to know how you added a captcha colun to your comments. :)

Is this part of the CKS Enhanced Blog Edition??

Name

Url

Email

Comments

CAPTCHA Image Validation



 
 
 

© 2009 Community Kit For SharePoint