Skip Ribbon Commands
Skip to main content

Robin | zevenseas | SharePoint Blog

:

The zevenseas Community > Blogs > Robin | zevenseas | SharePoint Blog > Posts > The zevenseas Choice Column Filter Web Part
July 10
The zevenseas Choice Column Filter Web Part

Well my mate Daniel is probably still wet behind his ears but he managed to built another lovely webpart. This webpart is called the “Choice Column Filter WebPart”. The question is of course.. what does it do?

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

Pretty impressive eh? You can download it from our CodePlex community solution site, and please let us know what you think of it!

Comments

Waldek Mastykarz

That's definitely a cool Web Part. I can imagine that there is a need for such solution in many collaboration environments.

Cheers,

Waldek
Robin MeureNo presence information on 16/11/2008 07:41

Rob Janssen

This is a wonderful web part! I am certainly gonna use it in our environment!

Keep up the good work ;)..
  
Robin MeureNo presence information on 16/11/2008 07:41
 

 Statistics

 
Views: 1706
Comments: 2
Tags:
Published:1645 Days Ago